Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

cast java

JAVA: Example of cast:

int SomeNumber = 5; //int 
double WideCastedNumber = (double)SomeNumber; //from int to double

double myDouble = 9.78;
int myInt = (int) myDouble; // from double to int
 
PREVIOUS NEXT
Tagged: #cast #java
ADD COMMENT
Topic
Name
5+3 =