Untitled

mail@pastecode.io avatar
unknown
java
2 years ago
775 B
4
Indexable
Never

import java.util.Scanner;

public class Main {
 public static void main(String[] args) {
 Scanner sc = new Scanner(System.in);
 System.out.println("How many group of arrays to be made: ");
 int arrays = sc.nextInt();
 System.out.println("How many indices each group: ");
 int indices = sc.nextInt();
 
 //Array
 int marks[][] = new int [arrays][indices];
 
 //Input
 System.out.println("Enter Names in Array");
 for (int i=0;i<arrays;i++) {
     
 for (int j=0;j<indices;j++){
 marks [indices][arrays]= sc.nextInt();
 }
 }
 
 
  //Output
    int arrays;
 for (int i=0;i<arrays;i++){
         int indices;
 for (int j=0;j<indices;j++) {
         String[][] marks;
      int j;
 int i;
 System.out.print(marks [i][j]+ " ");
         System.out.println();
         }
    }
}

}