Image

Imagexmac wrote in Imagejava_dev

simple question on array

Definitely a newbie question!!
I am writing a program with a 2 dimensional array and having trouble finding some info. -- how do I specify when I am referring to the index of the array, rather than the value in that spot and vice versa. -- I have been able to go through an array by using -- myArray[i][j] to indicate the spot in the array (I think) -- so how to indicate when I want the values in the array?

Correct me if my (I think) is also incorrect. -- I know this seems easy for most of you, but my brain is now fried and I'm under a timeline. I know what I want to do, and the order to do it in (pseudocode) but have trouble putting it in java. -- of course!

Thanks