It looks like the error you’re getting is because you’re trying to reach your Matrix[x][y] with strings instead of integars ie: Matrix[“x”][“y”].
You need to convert to string after you receive the coordinates value for the equals(String, String) function.
Hope that helps!
More Related Contents:
- random number in java, I need number every 30, I mean 30-60-90
- Incrementing only the digits from an alphanumeric string
- Performance of java if-else with return statement [duplicate]
- How to compare two Dates without the time portion?
- Does python have an equivalent to Java Class.forName()?
- Exception thrown in catch and finally clause
- Difference between jar and war in Java
- Create a GUID in Java
- Spring-Batch without persisting metadata to database?
- Creating java date object from year,month,day
- How to write a basic swap function in Java [duplicate]
- in what order are static blocks and static variables in a class executed? [duplicate]
- How to read XML response from a URL in java?
- How to use Sqoop in Java Program?
- Java 8: How do I work with exception throwing methods in streams?
- Displaying AM and PM in lower case after date formatting
- How to handle the new window in Selenium WebDriver using Java?
- How does Gson TypeToken work?
- Is there a recommended way to use the Observer pattern in MVP using GWT?
- How to get the current logged in user object from spring security?
- CryptoJS AES encryption and Java AES decryption
- org.openqa.selenium.ElementNotVisibleException: Element is not currently visible while clicking a checkbox through SeleniumWebDriver and Java
- Log4j, configuring a Web App to use a relative path
- Lambda Expressions for Abstract Classes
- Converting from byte to int in Java
- directories in a zip file when using java.util.zip.ZipOutputStream
- Is EntityManager really thread-safe?
- java.sql.SQLException: No database selected – why?
- Autoboxing can’t convert an int to an Integer
- C++ ifstream.getline() significantly slower than Java’s BufferedReader.readLine()?