public class Application {
public static void main(String[] args) {
// Cateva conditii utile:
System.out.println(5 == 5);
System.out.println(10 != 11);
System.out.println(3 < 6);
System.out.println(10 > 100);
// Folosim loops cu "break":
int loop = 0;
while(true) {
System.out.println("Looping: " + loop);
if(loop == 3) {
break;
}
loop++;
System.out.println("Running");
}
}
}
Output is:
true
true
true
false
Looping: 0
Running
Looping: 1
Running
Looping: 2
Running
Looping: 3
Hello there! This post couldn’t be written much better!
Looking through this article reminds me of my previous roommate!
He always kept talking about this. I’ll forward this
post to him. Pretty sure he will have a good read.
I appreciate you for sharing!
Post writing is also a excitement, if you be familiar with after that you can write if not it is complex to write.