+ 3
Is this Right?
public class Learn { public static void main(String[]args) { int value = 0; while(value < 10); { System.out.println("Hello world"); } } }
8 Answers
+ 4
NIHAL I think there is an other error too. Just remove that semicolon from while loop. it will terminate the while loop.
+ 4
No Syntex error but got an logical error.
You should increase the value of your variable in your code (like value++).
Otherwise it will be an infinite loop. cause value of that variable will be always less than 10.
+ 4
Of course not because you have used ';' after while .
If you remove it then it will be infinite loop
and if you want to print 10 times then update the value by value++ or the operation you wanna do :)
+ 3
Okay Ty
+ 2
Ohh So that was the Problem
0
Como es eseo
0
22
0
44