This is a very simple question.
I know I can set the value of a Float at constructor time. E.g.,
Float myFloat = new Float(accum); (where accum is a float)
but once myFloat has been created, how can I change its value? E.g., suppose the value of accum has changed and now I want to set the value of myFloat to accum (w/o having to re-construct it). I would think you could do something like
myFloat.setValue(accum); (but you can't, Floats don't have a setValue method)
How would you do this?
Thanks for any help!
I know I can set the value of a Float at constructor time. E.g.,
Float myFloat = new Float(accum); (where accum is a float)
but once myFloat has been created, how can I change its value? E.g., suppose the value of accum has changed and now I want to set the value of myFloat to accum (w/o having to re-construct it). I would think you could do something like
myFloat.setValue(accum); (but you can't, Floats don't have a setValue method)
How would you do this?
Thanks for any help!