8.9.21.The values wrapped inside two wrappers of the same type can be checked for equality
public class MainClass { public static void main(String[] argv) {
Double d1 = new Double(1.01055);
Double d2 = new Double("1.11348"); if (d1.equals(d2)) {
// Do something.
}