├── Code └── README.md /Code: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public class Main 3 | { 4 | public static void main (String[]args) 5 | { 6 | Scanner sc = new Scanner (System.in); 7 | int n = sc.nextInt (); 8 | int[][] a = new int[n][]; 9 | for (int i = 0; i < n; a[i] = new int[sc.nextInt ()], i++); 10 | for (int i = 0; i < n; i++) 11 | { 12 | for (int j = 0; j < a[i].length; a[i][j] = sc.nextInt (), j++); 13 | } 14 | for (int i = 0; i < n; i++) 15 | { 16 | for (int j = 0; j < a[i].length; j++) 17 | { 18 | System.out.print (a[i][j] + " "); 19 | } 20 | System.out.println (); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Jagged-array-in-Java --------------------------------------------------------------------------------