class DoubleToInt {
public static void main( String args[] ) {
double DoubleValue = 3.6987;
int IntValue = (int) DoubleValue;
System.out.println(DoubleValue + " is now " + IntValue);
}
}
@SuppressWarnings("deprecation")
int Entero=new Double(345.8).intValue();
Double double = 5.00;
int integer = double.intValue();