Здесь мы через метод table указываем желаемый размер таблицы.
package com.javarush.task.task03.task0314;
/*
Таблица умножения
*/
public class Solution {
public static void main(String[] args) {
//напишите тут ваш код
table(10, 10);
}
public static void num (int x, int l) {
for (int i = 1; i <= l; i++) {
System.out.print(i * x + " ");
}
System.out.println("");
}
public static void table (int heigth, int length) {
int i = 0;
int start = 1;
while (i < heigth) {
num(start, length);
i++;
start++;
}
}
}