Array -Index aus Ausnahme ohne Grund ohne GrundJava

Java-Forum
Anonymous
 Array -Index aus Ausnahme ohne Grund ohne Grund

Post by Anonymous »

Ich erhalte Array -Index in der letzten Zeile des Progs,

Code: Select all

output[1][1]
generiert dort eine solche Ausnahme. Aber das Gleiche blieb in der vorherigen Schleife normal. < /P>

Code: Select all

{
int ict=66,total_slots=12,h1=15,index_count=65;
String output[][] = new String[ict][total_slots+1];

for (int x = 0; x < (ict); x++)
output[x][0] = Integer.toString(x);
for (int y = 0; y < (total_slots + 1); y++)
output[0][y] = Integer.toString(y);
for (int x = 1; x

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post