coder-coder :
I have two variables: Double x
and double y
. I would like to assign x's value to y, but obviously there is an "incompatible types" error that is shown in a simple y = x
expression. y = (double) x
does not work properly either. How can I solve this if it's generally possible?
Guy :
You can use doubleValue()
double y = x.doubleValue();