i have a 2d array. i know the position. how can i print it out.

i just need to print out 1 single element not the entire array.

System.out.println(anArray[x][y]);

where x,y are selected integer indexes of the anArray.
quuba

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.