If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

java programming question

So i was wondering...i wrote the following code using regular expressions and i wanted to know if it could be done using substring() and indexOf methods...here is my code.....

Occasionally, backspaces in text are not handled properly, and appear as part of
a String. This question asks you to handle the backspaces in a String. Your input
will be a string which contains upper and lower case letters, spaces and
punctuation, as well as the additional symbol “@”. This symbol represents that
the user typed in a backspace, and that the previous character should be
ignored. So for instance, if the user types in Hej@llo..output would be Hello