Olá
Estou tentando popular um array de string e estou tendo o seguinte erro :
erro:
java.lang.ArrayIndexOutOfBoundsException: 1
For:
try {
String des2[]={""};
for(int i2 = 0; i2<10; i2++){
des2[i2] = “texto” + i2;
}
System.out.println(“total:” + des2.length);
} catch (Exception ex) {
ex.printStackTrace();
}
Alguem saberia me dizer porque?
Grato
Silva