Instantly share code, notes, and snippets.

@benjholla /Puzzle17.java Secret
Created Oct 15, 2018

Embed
What would you like to do?
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