Nilkanth
Posts: 4
Nickname: nilkanth
Registered: Mar, 2003
|
|
Re: simple array problem
|
Posted: Mar 16, 2003 3:00 PM
|
|
Hi Kishori, Thanx for ur reply. Now I've store the tokens in the array. The tokens r something like: hello this stay here come this go there 34 32. Now I wanna find out if the token==this, then get the position of the before element, ie for 'hello' and 'come'. And if the token==this then convert the tokens following it in it's char value until next 'this' is hit. I tried something like: if(allTheStrings[x].equals("this")) System.out.println(allTheStrings[x-1]); But this doesn't work. Can u pls advise? Thanks.
|
|