Also, another thing I tried was to make the location input a string. then I tried to parse it into an integer which didn't work, but I was wondering if I could parse just the integers from it and use...
Type: Posts; User: mdegges
Also, another thing I tried was to make the location input a string. then I tried to parse it into an integer which didn't work, but I was wondering if I could parse just the integers from it and use...
Thanks for all the points. I am not going to use your code, but I understand where you were going with it!
currentLocation starts off being the direction that's entered (North, south, east, west)....
Do you know what the input should be in the (x, y) form so that I can use getX()?
I tried changing it to integer but the input is not just one integer, it's a pair of integers.
Hi all,
I'm new to programming and am trying to understand getX() and getY() to extract the x, y coordinates from a point entered by the user. One of my problems is that I've defined that point...