+ 1
Hi, please help locate the problem in my code please
public static void main(String args[]){ int arr[4]={2,11,45,9}; //i starts with 0 as array index starts with 0 too int i=0; while(i<4){ System.out.println(arr[i]); i++; } } }
5 Antworten
+ 6
Don't know Java too much but you got three opening curly brackets here and four closing ones...
+ 6
Check the number of paranthesis first.What was the error it showed after the compling the entire code?
+ 1
I think the last curly bracket was for the class
+ 1
what is the error?
0
in which line