Converting String to Integer error

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!

Leave a Comment