![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2004
Posts: 2
Rep Power: 0
![]() |
Inheritance
Hey, just in the middle of studying for my exams. I've got a question here that I can't find a solution to anywhere.
The java collections classes do not directly support primitive types. Show how you could use inheritance to create a map which directly supports the primitive type, int. (It's 13 marks out of 100) If anyone knows how to do this i'd really appreciate the posts. It comes up every year. |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
dont now how to actually do it, but the smart-ass answer is to use java 1.5, which will autobox your ints into Integers
![]() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|