I\'m a bit confused about the way Java treats == and equals() when it comes to int, Integer and other types of numbers.
==
equals()
int
Integer
This automatic conversion is called autoboxing.