Sunday, February 25, 2018

Java program : Two dimensional Arrays

class ArrayTwoD
{
    static int[][] a={{11,22,33},{44,55,66}};
   
    public static void main(String[] args)
    {
        System.out.println(a[0][0]);
        System.out.println(a[1][0]);
        System.out.println(a[0][1]);
        System.out.println(a[1][1]);
        System.out.println(a[0][2]);
        System.out.println(a[1][2]);
    }
}

No comments:

Post a Comment

Sacred Thought

26 April 2024  Dear friends, I write the explanation of two verses of Geets for all of you, I hope you all will like it and benefit from it....