Another reason java is annoying to code in. Anyway my code looks like:
Code:public class Test { static String Description = "bad"; public static void main(String[] args) { boolean Good; if (Description == "shit"); { Good = false; } else if (Description == "great"); { Good = true; } if (Good == true); { System.out.println("Great!"); System.exit(0); } else if (Good == false); { System.out.println("Bad!"); System.exit(0); } } }
And it sais ' error delete token else '
Well, if i delete the else statements then it outputs "Great" no matter what!




Reply With Quote




