Java Puzzle 3 (spot the bug if one exists)
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 Puzzle3 { | |
public static void main(String[] args) { | |
// find and print NOP | |
for(byte b = Byte.MIN_VALUE; b < Byte.MAX_VALUE; b++) { | |
if(b == 0x90) { | |
System.out.print("Found: 0x90 NOP byte"); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adapted from Java Puzzlers: Traps, Pitfalls, and Corner Cases - Puzzle #24