[CODE lang="java" title="jx cannot be resolved to a variable" highlight="6-7"]public static String[][] array02 = {
Warum kann ich auf array02[ix][jx] nur einmal zugreifen. Der erste Zugriff ist fehlerfrei. Beim zweiten Zugriff, egal aus welchem Grunde, erhalte ich den Fehlerhinweis "jx cannot be resolved to a variable". Was mache ich falsch?
Vielleicht kann es jemand einem Anfänger erklären.
Vielen Dank im Voraus
skrobi
for (int ix = 0; ix < array02.length; ix++) {
for (int jx = 0; jx < array02[ix].length; jx++)
System.out.print( array02[ix][jx].toString() + ", " );
System.out.print( array02[ix][jx].toString() + ", " );
// :
// jx cannot be resolved to a variable
System.out.println();[/CODE]
Warum kann ich auf array02[ix][jx] nur einmal zugreifen. Der erste Zugriff ist fehlerfrei. Beim zweiten Zugriff, egal aus welchem Grunde, erhalte ich den Fehlerhinweis "jx cannot be resolved to a variable". Was mache ich falsch?
Vielleicht kann es jemand einem Anfänger erklären.
Vielen Dank im Voraus
skrobi
for (int ix = 0; ix < array02.length; ix++) {
for (int jx = 0; jx < array02[ix].length; jx++)
System.out.print( array02[ix][jx].toString() + ", " );
System.out.print( array02[ix][jx].toString() + ", " );
// :
// jx cannot be resolved to a variable
System.out.println();[/CODE]