class TryInt {
	public static void main(String [] args){
		int i;
		double d=3.9;
		/* 
		 Converting doubles to integers requires a CAST (int)
		 Information may be lost in the conversion. 
		 We are telling the compiler
		 That we are aware of this, but do it anyway. 
		*/
		i=(int)d; 
		System.out.println(i);

		// i=d; // Not allowed!!
		i=45000;
		d=i; 	// This is allowed since the value in i 
			// can be completely represented in d
		System.out.println(d);
	}
}

