When to use primitive and when complex types in java
- by Gandalf StormCrow
Hello,
In which case should you use primitive types(int) or complex types(Integer)?
Ex:
http://stackoverflow.com/questions/2508918/why-java-compiler-does-not-like-integer-as-type-for-values-in-hashmap this example works with Integer type. Should we always use Integer as a complex type?