Sunday, December 29, 2019

Java Class 4 Data Type

package executionstep;


public class DataType {
    public static void main(String [] args){
   
    int i = 5;
    double d =10.5;
    float f=10;
    char c='u';
    short s=5278;
    boolean b=true;
   
        System.out.println("int = "+i);
        System.out.println("double = "+d);
        System.out.println("float = "+f);
        System.out.println("char = "+c);
        System.out.println("short = "+s);
        System.out.println("boolean = "+b);
    }
   
}

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home