if (a == b) { if (c == d) { if (g == h) { System.out.println("hello"); } } else { System.out.println("world"); } } else { if (e == f) { System.out.println("test"); } else { System.out.println("last one"); } }