how to convert a fgloat to an integer in java code example Example: java convert float to int int a = (int)float1