
/*
This program introduces the following types:
byte, short, int, long
char
*/
public class PrimitiveTypes {
    public static void main(String[] args) {
        byte shutdown;
        shutdown=123;
        System.out.println(shutdown);
        shutdown=(byte)(shutdown+5); //??
        System.out.println(shutdown);

        short area;
        area=32766;
        System.out.println(area);
        area=(short)(area+2);
        System.out.println(area);

        int population;
        population=32766;
        System.out.println(population);
        population=population+2;
        System.out.println(population);

        // Min and max values

        System.out.println(Byte.MIN_VALUE);
        System.out.println(Byte.MAX_VALUE);
        System.out.println(Short.MIN_VALUE);
        System.out.println(Short.MAX_VALUE);

        //Exercise: Find min and max of int and long.
        // The char type.
        char first_initial; // Variable  of type char.
        first_initial='a';
        System.out.println(first_initial);
        first_initial=(char)(first_initial+1);
        System.out.println(first_initial);
        first_initial=(char)(first_initial*500);
        System.out.println(first_initial);
        //System.out.println(Char.MIN_VALUE);




    }
}
