import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int x[] = {input.nextInt()};
int y = (x[0]*1+x[1]*2+x[2]*3+x[3]*4+x[4]*5+x[5]*6+x[6]*7+x[7]*8+x[8]*9)%11;
if(y==10){
System.out.println(x+"x");
}
if(y!=10){
System.out.println(x+""+y);
}
}
}
여기다가 수를 대입하면
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at Main.main(Main.java:8)
라고뜨는데 이게 뭐예요?