Hallo,
ich möchte einen zweidimensionalen Array initlialisieren. So sieht mein Code aus:
Allerdings erhalte ich beim compilieren immer den Fehler "illegal start of expression" mit dem Verweiß auf die erste geschweifte Klammer.
Kann mir da jemand weiterhelfen?
ich möchte einen zweidimensionalen Array initlialisieren. So sieht mein Code aus:
Code:
String s1[][] = new String[3][15];
s1[4][16] = { {"E","4","D","1","2","F","B","8","3","A","6","C","5","9","0","7"},
{"0","F","7","4","E","2","D","1","A","6","C","B","9","5","3","8"},
{"4","1","E","8","D","6","2","B","F","C","9","7","3","A","5","0"},
{"F","C","8","2","4","9","1","7","5","B","3","E","A","0","6","D"}};
Allerdings erhalte ich beim compilieren immer den Fehler "illegal start of expression" mit dem Verweiß auf die erste geschweifte Klammer.
Kann mir da jemand weiterhelfen?