This is an excerpt from "Begining
Java 5" Wrox by Ivor Horton
"Method Function Argument Type Result Type
round(arg) calculates the nearest float or double of type int for
integer to the argument a float argument.
value. of type long
for a double
argument
the expression to the right of averageFruit1 should not be explicily casted according to the author but the compiler shows me error "possible loss of precision" Is it a typographical error in the book
N.B. the problem gets sorted out with the following explicit casting:
expecting a quick response from ranchers as has always been your USP!!!