Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 14th, 2005, 8:30 AM   #1
PurpleMonkeyDW
Newbie
 
Join Date: Nov 2004
Posts: 2
Rep Power: 0 PurpleMonkeyDW is on a distinguished road
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.
PurpleMonkeyDW is offline   Reply With Quote
Old Jan 17th, 2005, 5:38 PM   #2
ZenMasterJG
Hobbyist Programmer
 
ZenMasterJG's Avatar
 
Join Date: Nov 2004
Location: Boston, MA
Posts: 148
Rep Power: 4 ZenMasterJG is on a distinguished road
Send a message via AIM to ZenMasterJG
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
ZenMasterJG is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:23 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC