Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Jan 26th, 2005, 11:34 PM   #1
soldshort
Newbie
 
Join Date: Jan 2005
Posts: 1
Rep Power: 0 soldshort is on a distinguished road
its late and my head hurts

im having some problems....im using a stack to keep track of a bunch of int values....the problem is that the class im using that implements the stack interface uses linked lists

this means i can only send it objects.
is there anyway to convert objects or Integers to ints and vice versa?
soldshort is offline   Reply With Quote
Old Jan 26th, 2005, 11:43 PM   #2
Dizzutch
Professional Programmer
 
Dizzutch's Avatar
 
Join Date: Dec 2004
Location: Worcester, MA
Posts: 441
Rep Power: 4 Dizzutch is on a distinguished road
Send a message via ICQ to Dizzutch Send a message via AIM to Dizzutch Send a message via MSN to Dizzutch Send a message via Yahoo to Dizzutch
you can use the wrapper classes in Java
ex
Integer i = new Integer(10);
every primitive sort in Java has a wrapper class.
check the API for more information
http://java.sun.com/j2se/1.5.0/docs/api/
__________________
naked pictures of you | PFO F@H stats
Dizzutch 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 10:17 AM.

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