Hi
Ich habe leider ein Problem mit einer Fehlermeldung.
Fehler:
Ist sicher nur ein total dummer Fehler. Aber ich starre jetzt schon 15 Minuten drauf, und ich komm echt nicht weiter. Was mache ich denn falsch?
Ich habe leider ein Problem mit einer Fehlermeldung.
Java:
class Test
{
public static void main(String[] args)
{
int[] values = {1, 2, 3, 4, 5, 6, 7, 8}; // 2^x Werte
int[][] v = new int[5][values.length];
v[4] = values;
for(int y = 0; y < 5; ++y);
{
System.out.println(y);
}
}
}
Java:
Test.java:11: error: cannot find symbol
System.out.println(y);
^
symbol: variable y
location: class Test
1 error
Zuletzt bearbeitet: