Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

type casting

public class Hello {
    public static void main(String[]args) {

       int IntAmount = 5;
       double doubleamount = IntAmount; // Automatic casting: int to double
        System.out.println(doubleamount);

    }
}
Source by www.allaboutjava.com #
 
PREVIOUS NEXT
Tagged: #type #casting
ADD COMMENT
Topic
Name
2+8 =