Skip to content

Instantly share code, notes, and snippets.

@tedheich
Created November 26, 2009 07:13
Show Gist options
  • Save tedheich/243291 to your computer and use it in GitHub Desktop.
Save tedheich/243291 to your computer and use it in GitHub Desktop.
Exercise on java bytes
class ByteOps {
public static void main(String []args) {
byte a = 127;
byte b = 1;
for (int i = 1;i<128;i++){
a = (byte) (a + b);
System.out.println("byte a = " + a);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment