The following Java code snippet is syntactically correct: int x = 5; if (x > 5) System.out.println("Greater"); else if (x < 5) System.out.println("Smaller"); else System.out.println("Equal");