Have a look at the API docs.



compareTo()



doubleValue(). Also the conversion (called unboxing) will often just happen: