Menu

[r13]: / Chapter 1 Code / IfTest.java  Maximize  Restore  History

Download this file

9 lines (9 with data), 234 Bytes

1
2
3
4
5
6
7
8
9
public class IfTest {
public static void main(String[] args) {
int x=1;
if (x==1) {
System.out.println("x is 1, therefor I see this");
}
System.out.println("I will always see this, no matter the value of x");
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.