java flloat to int code example
Example 1: java cast bolean to int
int result = myBooleanVar ? 1 : 0;
Example 2: java long to integer
// auto-unboxing does not go from Long to int directly, so
Integer i = (int) (long) theLong;
int result = myBooleanVar ? 1 : 0;
// auto-unboxing does not go from Long to int directly, so
Integer i = (int) (long) theLong;