Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~288 People Reached
Favorite Forums
Favorite Tags
java x 8
Member Avatar for Beautifullove09
Member Avatar for Beautifullove09

Hi I"m receiving this on my program. I know that this happens when i choose a location outside of the map, but how do i fix this? Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1 at GameMap.getLocation(GameMap.java:56) [COLOR="red"]return map[xdimension][ydimension];[/COLOR] at Game.startGame(Game.java:87) [COLOR="Red"]System.out.println("New Location:" + mapMgr.getLocation(X,Y).getLocation() + ", "+ mapMgr.getLocation(X,Y).getDescription());[/COLOR] at Game.main(Game.java:168) [COLOR="red"] …

Member Avatar for NormR1
0
114