Created
May 26, 2014 08:20
-
-
Save msakamoto-sf/eef0953f67b0257f95c9 to your computer and use it in GitHub Desktop.
create 0x00 - 0xFF 256 bytes binary data to stdout.
This file contains hidden or 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
for (int i in 0..0xFF) { | |
System.out.write(i); | |
System.out.flush(); | |
} |
This file contains hidden or 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 get256bytes { | |
public static void main(String[] args) { | |
for (int i = 0; i <= 0xFF; i++) { | |
System.out.write(i); | |
System.out.flush(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment