public class Base {
  public static void main (String[] args) {
    boolean flag = true; 
    char ch = 'A'; // Carattere Unicode 16 bit
byte b = 12; short s = 24; int i = 257; long l = 890L; // note the use of "L" here
float f = 3.1415F; // note the use of "F" here double d = 2.1828; System.out.println ("flag = " + flag); // the "+" is string concatenation System.out.println ("ch = " + ch); System.out.println ("b = " + b); System.out.println ("s = " + s); System.out.println ("i = " + i); System.out.println ("l = " + l); System.out.println ("f = " + f); System.out.println ("d = " + d); } }