-
2D arrays
Hi
i'm a total beginner to java, and i've been given an assignment to do but really have no idea on the code to use, i need to link a 2D array up to a 12 x 12 grid and have a player icon be able to move around the grid, and this need to be displayed in the command prompt, so could someone help me just get the grid and 2D array up and compiling and running from there i'm pretty sure i can work out how t proceed, its just getting started is the problem.
-
Re: 2D arrays
Here's how to define a 2D array: int[][] twoD = new int[12][12];