Java - Assign Value to Variables

Description

Assign Value to Variables

Demo

public class Main {
    public static void main(String[] args) {
        boolean bool = false;
        String str = "CA";
        short sh = 32767;
        int i = 2000000000;
        double d = 0.1234567891011;
        float f = 0.5f;
        long l = 919827112351L;
        byte b = 127;
        char c = 'c';
        System.out.println(c);/*from  w ww .j  a  v  a2s  .  com*/
        System.out.println(l);
        System.out.println(d);
    }
}

Related Exercise