BASIC CONSTRUCTS

17. How to convert int to double

            class IntToDouble{
                public static void main(String st[]){
                    int num = 23;
                    double l = (double)num;
                    System.out.println("Converted Double : "+l);
                }
            }
        

OUTPUT

            Converted Double : 23.0