//Comparing a int with a Double prints false because a and d have the same value.
But should be prints true i think is a mistype.
Because in fact this is returning true.
Code: Select all
final int intValue = 10;
final Double doubleValue = 10.0;
System.out.println(intValue==doubleValue);
