View Single Post
Old Feb 19th, 2005, 3:11 AM   #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
int myInt = Integer.parseInt(S.get(2));

or somthing very, very similar to that. In any case, check out the Integer class.
If you're using 1.5, Java automatically wraps ints into Integer, in order to store them on thie LinkedList (as the list stores its data as Object, which doesnt like primatives.)
So, the LinkedList should return an Integer, which you unwrap with Integer.parseInt
ZenMasterJG is offline   Reply With Quote