Quick actions

cmd+k|ctrl+k

Navigation

Languages

Arreglos

Snippet info

Language

Java

Visibility

public

Author

luisquiquey2k

Created

2016-08-07T01:06:54Z

Updated

2016-08-07T01:08:01Z

class Main {
    public static void main(String[] args) {
        
        int[] miArregloInt = new int[5];
        
        //Elementos del arreglo
        miArregloInt[0] = 4;
        miArregloInt[1] = 5;
        miArregloInt[2] = 6;
        miArregloInt[3] = 7;
        miArregloInt[4] = 8;
        
        //Impresion del arreglo
        System.out.println(miArregloInt[0]);
        System.out.println(miArregloInt[1]);
        System.out.println(miArregloInt[2]);
        System.out.println(miArregloInt[3]);
        System.out.println(miArregloInt[4]);
    }
}
INFO