Java Puzzle 17 (explain the behavior of this program)
public class Puzzle17 { | |
public static void main(String[] args) { | |
run(1.0 / 0.0); | |
} | |
public static void run(double i) { | |
while(i == i + 1) { | |
System.out.println(i); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment