Skip to content

Instantly share code, notes, and snippets.

@qassa
Last active October 20, 2015 14:23
Show Gist options
  • Save qassa/4bee47b0e1ab18a4b384 to your computer and use it in GitHub Desktop.
Save qassa/4bee47b0e1ab18a4b384 to your computer and use it in GitHub Desktop.
Assigning variable a in while-loop
int a = 0;
while((a=5) != 0 && 5 > 4){
System.out.println("Hello! It's a loop.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment