Skip to main content



      Home
Home » Newcomers » Newcomers » "while" loop won't work
"while" loop won't work [message #1837398] Fri, 29 January 2021 05:42 Go to next message
Eclipse UserFriend
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 07:48 Go to previous message
Eclipse UserFriend
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 Jul 12 07:49:56 EDT 2025

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

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

Back to the top