package class1_3_PrimitiveTypes; // Josiah Yoder, MSOE, 11 September 2015 public class PrimitiveTypes { public static void main(String[] args) { // NUMERIC LITERAL: e.g. 1, 1L, etc. int i = 1; long el = 1L; float f = 1.0f; double d = 1.0; char c = 'A'; boolean b = true; // or false //explicit casts // drop decimal part -- trucating i = (int)5.0; i = (int)(4.5/2.3); // implicit casts d = i+1; el = i+1; } }