public class TypeCastDouble {
public static void main(String[] args){
double myDouble = 420.5;
//Type cast double to int
int i = (int)myDouble;
...
Type: Posts; User: patel
public class TypeCastDouble {
public static void main(String[] args){
double myDouble = 420.5;
//Type cast double to int
int i = (int)myDouble;
...