class if{ public static void main (String args[]){ int x = 9; if (x <= 9){ System.out.println(\"Yay\"); }else{
You can't name your class if, as it's a keyword. Check this for more examples.