package com.javarush.task.pro.task05.task0511; import java.util.Scanner; /* Создаем двумерный массив */ public class Solution { public static int[][] multiArray; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = Integer.parseInt(scanner.nextLine()); multiArray = new int[n][]; for (int i = 0; i < n; i++) { int size = Integer.parseInt(scanner.nextLine()); multiArray[i] = new int[size]; } } } package com.javarush.task.pro.task05.task0511; import java.util.Scanner; /* Создаем двумерный массив */ public class Solution { public static int[][] multiArray; public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = Integer.parseInt(scan.nextLine()); multiArray = new int[a][]; for (int i = 0; i < a; i++) { int d = Integer.parseInt(scan.nextLine()); multiArray[a] = new int[d]; } } }