Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

integer class in java

int val = 12;
Integer valAsInteger = 12; //Autoboxing (i.e converting from int to Integer)
System.out.println("Val as double: " + valAsInteger.doubleValue()); //this is an ex where you can benefit from the Integer class 
 
PREVIOUS NEXT
Tagged: #integer #class #java
ADD COMMENT
Topic
Name
3+3 =