编辑器
public class Main { public static void main(String[] args) { int x = 15; int y = 25; if (x > 10) { System.out.println("x is greater than 10"); // Nested if if (y > 20) { System.out.println("y is also greater than 20"); } } } }
x is greater than 10
y is also greater than 20