2D array - how do I create one with 20 rows and columns?
I'm really new to java and I'm not comfortable with it AT ALL.
I need to create a 2d array that has rows and columns in it. I've got a gridsize of 20 x 20. I'm just a bit confused as to how to declare the array in the first place: I've got this below at the moment:
int  hits = new int 
But I thought it might need to have something like [COL_ARRAY][ROW_ARRAY] and I declare the two arrays first.
Totally, totally confused. I need to use the array to jump through the grid and pick up random samples of each cell later on (which I think I've got under control).
Any help is good help!! Thanks!!