Why don't Generics support primitive types?
- by RayAllen
Why Generics (in Java) works with the objects but not with primitive types?
For example
Gen<Integer> inum = new Gen<Integer>(100); // works fine, but
Gen<int> inums = new Gen<int>(100); // is not allowed.
Thanks !