![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2005
Posts: 1
Rep Power: 0
![]() |
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? |
|
|
|
|
|
#2 |
|
Professional Programmer
|
you can use the wrapper classes in Java
ex Integer i = new Integer(10); check the API for more information http://java.sun.com/j2se/1.5.0/docs/api/ |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|