Запилил вот так как в скрине, а нужно было по проще. Вот только не надо писать что я тролю. Каждый понимает условие задачи.
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 size = scan.nextInt();
int[] monoArray = new int[]{1, 7, 5, 9, 3};
multiArray = new int[size][];
for (int i = 0; i < multiArray.length; i++) {
multiArray[i] = new int[monoArray[i]];
for (int j = 0; j < multiArray[i].length; j++) {
multiArray[i][j] = scan.nextInt();
}
}
}
}