Tell me what's wrong [closed]
- by steve care
public class Sample {
public static void main (String[]a){
int[] x;
x = new int[10];
int i;'
int n=0;
for (i=0;i<=10;i++){
n++;
x[i]=n;
System.out.print(x[i] + " ");
}
}
}
the problem is I got an error of "Exception in…