SHARE
TWEET

Untitled

a guest Jan 3rd, 2013 66 Never
  1. public class Example {
  2.  
  3. // Common data types
  4. int exampleInt = 54;
  5. char exampleChar = 'A';
  6. String exampleString = "Hello, reddit!";
  7. boolean exampleBoolean = true;
  8.  
  9. // More data types, not usually needed
  10. double exampleDouble = 223334.3274837;
  11. long exampleLong = 123456789L;
  12. short exampleShort = 30000;
  13. }
RAW Paste Data
Top