Run ❯
Get your own Java server
❯Run Code Ctrl+Alt+R
Change Orientation Ctrl+Alt+O
Change Theme Ctrl+Alt+D
Go to Spaces Ctrl+Alt+P
public class Main { public static void main(String[] args) { int x = 20; int y = 18; if (x > y) { System.out.println("x is greater than y"); System.out.println("Both lines are part of the if"); } System.out.println("I am outside if, not part of if!"); } }
x is greater than y
Both lines are part of the if
I am outside if, not part of if!