Code error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Code error

public class Program { public static void main(String[] args) { int x = 0; while(x<5) { System.out.printIn(x); x++; } } } Where is the error? The output should be 01234 I just started Java and wanted to use the “while“ thing. Thank you very much

24th Sep 2017, 5:34 PM
Novas
Novas - avatar
6 Answers
+ 7
what question?
24th Nov 2017, 6:55 PM
Novas
Novas - avatar
+ 3
hahahha Gordie great thank you very much!! I always thought that the "l" is an "I" 😂😂 I think that I would have done it wrong everytime XD
24th Sep 2017, 6:01 PM
Novas
Novas - avatar
+ 3
How did you notice this mistake? It looks the same😂
24th Sep 2017, 6:03 PM
Novas
Novas - avatar
+ 1
oh ok
24th Sep 2017, 6:16 PM
Novas
Novas - avatar
+ 1
oops but could you please answer the question?
24th Nov 2017, 5:01 PM
Joseph
0
oops but could you please answer the question?
24th Sep 2017, 5:39 PM
Novas
Novas - avatar