-
-
Save benjholla/fe0bb0be062a49b6f1add5b4a0d2866c to your computer and use it in GitHub Desktop.
Java Puzzle 17 (explain the behavior of this program)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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