When compiling the following program in the cmd I get the error:
unreachable statement
public class Ejercicio1{
public static void main(String[] args){
//A)
int[] f = {10,2,4,5,4,3,8,9,2,3};
System.out.println (f[6]);
//B)
float g[];
g = new float [10];
g[5]= 5;
//C)
int arregloEnteros[];
arregloEnteros = new int [1001];
for (int i = 0; 1 <=1000; i++){
arregloEnteros [i] = 1;
}
//D)
int[] arregloA = new int[10];
int[] arregloB= new int[20];
for (int j = 2; j < arregloA.length; j++){
arregloB[j]=arregloA[j-2];
}
//E)
int[][] matriz = new int[3][3];
matriz[0][0] = 1;
matriz[0][2] = 3;
matriz[0][1] = 2;
matriz[1][0] = 4;
matriz[1][1] = 5;
matriz[1][2] = 6;
matriz[2][0] = 7;
matriz[2][1] = 8;
matriz[2][2] = 9;
}
}