smeacham

Java constants

Sep 6th, 2012
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.19 KB | None | 0 0
  1. byte a = 68;
  2. char a = 'A'
  3. int decimal = 100;
  4. int octal = 0144;
  5. int hexa =  0x64;
  6. "Hello World"
  7. "two\nlines"
  8. "\"This is in quotes\""
  9. char a = '\u0001';
  10. String a = "\u0001";
  11. float f = 0.1f;
Advertisement
Add Comment
Please, Sign In to add comment