2005-01-10 | Paul Boddie | raw annotate files changeset graph | Moved the lang module contents into the lang package. Fixed various java.lang and java.io circular imports by introducing a java.lang._object module. Corrected various base classes (object -> java.lang.Object, Exception -> java.lang.Exception) and fixed raising of exceptions in certain cases. |
1 public class ComparisonTest { 2 3 public boolean equals(int x, int y) { 4 if (x == y) { 5 return true; 6 } else { 7 return false; 8 } 9 } 10 11 public boolean lessThan(int x, int y) { 12 if (x < y) { 13 return true; 14 } else { 15 return false; 16 } 17 } 18 19 public boolean greaterThan(int x, int y) { 20 if (x > y) { 21 return true; 22 } else { 23 return false; 24 } 25 } 26 }