0
Why it i giving error in this simple code?
2 Antworten
+ 2
Change last line with this
System.out.println("the value of i is " + code.nextInt());
or do like this
i = code.nextInt();
System.out.println("the value of i is " + i);
nextInt is a method so you should write nextInt()
+ 1
Thank you