Instantly share code, notes, and snippets.

@benjholla /Puzzle3.java Secret
Created Aug 29, 2018

Embed
What would you like to do?
Java Puzzle 3 (spot the bug if one exists)
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");
}
}
}
}
@benjholla

This comment has been minimized.

Show comment
Hide comment
@benjholla

benjholla Aug 29, 2018

Adapted from Java Puzzlers: Traps, Pitfalls, and Corner Cases - Puzzle #24

Owner

benjholla commented Aug 29, 2018

Adapted from Java Puzzlers: Traps, Pitfalls, and Corner Cases - Puzzle #24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment