Совсем запутался в данной теме. что не так с кодом? подскажите. выдает ошибку и результат совсем другой
package en.javarush.task.pro.task05.task0509;
/*
Multiplication table
*/
public class Solution {
public static int[][] MULTIPLICATION_TABLE;
public static void main(String[] args) {
MULTIPLICATION_TABLE = new int[10][10];
int x = 1;
int y = 1;
for(int i=0;i<MULTIPLICATION_TABLE.length;i++){
for(int j=0;j<MULTIPLICATION_TABLE[i].length;j++){
MULTIPLICATION_TABLE[i][j]=x*y;
y+=y;
}
x+=x;
y=1;
}
for(int i=0;i<MULTIPLICATION_TABLE.length;i++){
for(int j=0;j<MULTIPLICATION_TABLE[i].length;j++){
System.out.print(MULTIPLICATION_TABLE[i][j]+" ");
}
System.out.println();
}//write your code here
}
}