public class odd_Even {
public static void main(String [] args){
Scanner sc=new Scanner(System.in);
System.out.println("Number of rows");
int rows=sc.nextInt();
System.out.println("Number of Coulum");
int col =sc.nextInt();
int [][] array = new int[rows][col];
for (int i=0;i <rows;i++ ){
for (int j=0;j < col; j++){
array[i][j] =i+j;
}
}
System.out.println(array.toString());
}
}
I want TO PRINT ALL THE ARRAY BUT UNABLE TO DO SO, HOW CAN I DO?