TraversingArrars

mail@pastecode.io avatar
unknown
java
a year ago
418 B
1
Indexable
Never
public class Arraysmulti{

    void multi(){
        int[][] arr= {{12,45,78,45,7},{34,6,79,01,56}};
        for(int i=0;i<arr.length;i++)
        {
            for(int j=0;j<arr[i].length;j++)
            System.out.println(arr[i][j]);
        }
}



     public static void main(String []args){
         Arraysmulti obj = new Arraysmulti();
       obj.multi();
        //System.out.println("Hello, World!");
     }
}