Hi,
You got strings from the client in what form? String[] array?
String[] tokens=com.neuralworks.stringio.StringSmith.tokenize(_2ThetaLimits, " ");
Stack<String> lifo=new Stack<String>();
for(int index=0;index<tokens.length;index++)
{
lifo.push(tokens[index]);
}
Something like this?>
thanks for you reply.
In fact, I want generate some stacks according to the different sessionId of the users. So,I can use unique stack for each user. In java servlet ,for example:
String sessionID=session.getId();
String QuestionStack=sessionID+"question";
String ResultStack=session+"result";
My intention is to generate QuestionStack and ResultStack as the instance names of Stacks.
Thanks a lot!