import java.util.Scanner;
public class MehrdimensionaleArrays {
public static void main(String[] args) {
System.out.println("Wie groß soll ihr Vektor sein?");
int Line;
int Column;
Scanner sc = new Scanner(System.in);
Line = sc.nextInt();
Column = sc.nextInt();
int[][] Vektor = new int[Line][Column];
for(int i = 0; i < Vektor.length; i++) {
for(int j = 0; i < Vektor[i].length; j++) {
Vektor[i][j] = (int) (Math.random()*100);
System.out.print(Vektor[i][j] + ", " );
}
System.out.println();
}
}
} I am getting an error that says Index X out of bounds for length X and i'm not sure what that means.