Hi, everybody!
I'm doing some exercises for my
Java students, and suddenly I had created the ugly excuse for code below. Now, if I change the figures in the Math.floor() call from 3.4 to -3.4 and back a couple of times, my compiler bugs out. Why???
public class Q extends
Thread {
public static void main(
String[] args) {
b((int) Math.floor(-3.4));
}
public static void b(int i) {
try {
}
catch (Exception e) { c(i); }
}
public static void c(int i) { if (i == -4) d(); }
public static void d() { System.out.println("Grufs!"); }
}
If I remove the extends Thread clause (which is completely useless, anyway) it works, I think. Anyone?
//Kaspar