hi
i am storing ints in a vector by wrapping in class Integer
swingsStore.addElement( new Integer (swing) );
but i am having trouble extacting the value, i don't want to change it just store then extract all the values
here it what i currently have
do
{
int size = swingsStore.size( );
totalSwing = Integer.parseInt( swingsStore.elementAt( size - 1)); // this is the line causing problems
swingsStore.removeElementAt( size -1 );
} while ( swingsStore.size( ) != -1 );
but it does not extract the values
any ideas
thanks
ewan
i am storing ints in a vector by wrapping in class Integer
swingsStore.addElement( new Integer (swing) );
but i am having trouble extacting the value, i don't want to change it just store then extract all the values
here it what i currently have
do
{
int size = swingsStore.size( );
totalSwing = Integer.parseInt( swingsStore.elementAt( size - 1)); // this is the line causing problems
swingsStore.removeElementAt( size -1 );
} while ( swingsStore.size( ) != -1 );
but it does not extract the values
any ideas
thanks
ewan