public static void main(String[] args){ int anInt = 3; float aFloat = anInt;
anInt = aFloat;
Zamp3.java:7: error: incompatible types: possible lossy conversion from float to int
anInt = (int) aFloat
byte short int long float double
(int) (aFloat + .5)
will round properly