Possible Duplicate:
Java : different double and Double in comparison
In a sample java program for one of my labs, I have two different methods taking Double and double parameters respectively.
How do I differentiate between them when passing arguments to them?
First off you need to understand the difference between the two types.
doubleis a primitive type whereasDoubleis an Object.The code below shows an overloaded method, which I assume is similar to your lab code.
There are several ways you can call these methods:
These calls will result in: