I defined a method with one parameter of type float, shown below:
public float getValue(float value){
return value;
}
When I call this method, passing the float value, say 10.1201 , as shown below:
float value = methodReturnTest.getValue(10.1201);
My IDE says to have the argument cast to a float. I tried to search, but could not get the corresponding answer. so send it. Please explain.
Thanks.
source
share