public class PrimitiveTypesInfo
{
	private static final int BYTE_BITS = 8;

	public static void main (String[] args)
        {
		System.out.println("Primitive Types Information");
		System.out.println("Primitive Type | Minimal Value | " +
			"Maximal Value | Size in Bytes");
		System.out.println("boolean | | |");
		System.out.println("char | " + Character.MIN_VALUE + " | " + 
			Character.MAX_VALUE + " | " + Character.SIZE / BYTE_BITS);
		System.out.println("byte | " + Byte.MIN_VALUE + " | " + 
			 Byte.MAX_VALUE + " | " + Byte.SIZE / BYTE_BITS);
		System.out.println("short | " + Short.MIN_VALUE + " | " + 
			 Short.MAX_VALUE + " | " + Short.SIZE / BYTE_BITS);
		System.out.println("int | " + Integer.MIN_VALUE + " | " + 
			 Integer.MAX_VALUE + " | " + Integer.SIZE / BYTE_BITS);
		System.out.println("long | " + Long.MIN_VALUE + " | " + 
			 Long.MAX_VALUE + " | " + Long.SIZE / BYTE_BITS);
		System.out.println("float | " + Float.MIN_VALUE + " | " + 
			 Float.MAX_VALUE + " | " + Float.SIZE / BYTE_BITS);
		System.out.println("double | " + Double.MIN_VALUE + " | " + 
			 Double.MAX_VALUE + " | " + Double.SIZE / BYTE_BITS);
	}
}