Instantly share code, notes, and snippets.

Embed
What would you like to do?
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