Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java casting to int

//In java, you can cast to any primitive type by putting (primitiveType)
//before whatever you're casting to.

private static int myInt = (int)myDouble;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #casting #int
ADD COMMENT
Topic
Name
1+6 =