Uses of Integer, double and Character in JAVA

class Main{
public static void main (String args[]){
    int i = 8;
    double d = 8.5;
    char c = 'A';
    System.out.println("Integer i = " + i);
     System.out.println("double d = " + d);
      System.out.println("Character c = " + c);       
    }
}


The Output is Given Below:
Integer i = 8
double d = 8.5
Character c = A

0 comments:

Post a Comment