Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » "while" loop won't work
"while" loop won't work [message #1837398] Fri, 29 January 2021 10:42 Go to next message
kazhiel de los llanos is currently offline kazhiel de los llanosFriend
Messages: 1
Registered: January 2021
Junior Member
Hi! I've tried doing this thing of looping a value and increasing it until i can't do it anymore but the console stays blank after running it.

public class application {
public static void main(String[] args) {

int value = 0;

while (value < 10);

{
System.out.println("hi! you have" + " " + value + " " + "pancakes");


value = value + 1;


}

}
}

Re: "while" loop won't work [message #1837405 is a reply to message #1837398] Fri, 29 January 2021 12:48 Go to previous message
fgn fgn is currently offline fgn fgnFriend
Messages: 3
Registered: January 2021
Junior Member
while (value < 10); -> while (value < 10)
Previous Topic:Exclude JRE for References
Next Topic:New Eclipse installation warns of unsigned content
Goto Forum:
  


Current Time: Sat Sep 21 01:17:08 GMT 2024

Powered by FUDForum. Page generated in 0.06917 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top