class DoubleToInt { public static void main( String args[] ) { double DoubleValue = 3.6987; int IntValue = (int) DoubleValue; System.out.println(DoubleValue + " is now " + IntValue); } }