0
What did i get wrong? public class printx { public static void main(String[] args) { int [] array = new int [10];
Java
4 Answers
+ 4
You should close the brackets of the main and the class
+ 3
You might want to show your code in the thread description instead of the thread title.
+ 3
Yes, without the full code, no one knows if the fact that your code is incomplete is the actual error or whether there is any other error.
+ 2
correction:
public class printx{
public statis void main(String[] arhs){
int[] array=new int[10];
}
}