|
How can I cast Object as an int
I'm writing a Swing application, and I have a JSpinner object that I modeled on the SpinnerNumberModel.
There is a getPreviousValue method that returns the value of the previous number in the sequence, only in Object form!
I need to work with this number as an int.
How can I cast that Object as an int?
Thanks
|