Skip to content

Instantly share code, notes, and snippets.

@msakamoto-sf
Created May 26, 2014 08:20
Show Gist options
  • Save msakamoto-sf/eef0953f67b0257f95c9 to your computer and use it in GitHub Desktop.
Save msakamoto-sf/eef0953f67b0257f95c9 to your computer and use it in GitHub Desktop.
create 0x00 - 0xFF 256 bytes binary data to stdout.
for (int i in 0..0xFF) {
System.out.write(i);
System.out.flush();
}
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