void leepY() { if((year%100=0)|(year%400=0)) { System.out.println("Not a Leap Year!"); } else if(year%4=0) { System.out.println("Leap Year!!"); } else { System.out.println("not a Leap Year!"); } } } Hi all, When I run the preceeding code I get a compile error saying- "invalid left hand side of assignment: if((year%100=0)|(year%400=0))" ^ It's my understanding that the expression to be evaluated should be on the left, such as: 10%3=1. Where 10 is the expression. Please set me straight!