Amod Gupta wrote:This cannot be done directly by using split() function as for ...
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Amod Gupta wrote:i cannot understand can you please give an example.I am basically trying to build an expression calculator and i want all the operators as well as numbers to be stored as seperate strings.@Henry
Amod Gupta wrote:@henry
what is find() method, i have never heard and i am not able to find it.
Amod Gupta wrote:@henry please give the example.i want to try.
Amod Gupta wrote:@Ireneusz Kordal
but i also want the symbols and the order of symbols and numbers must be maintained,
Ireneusz Kordal wrote:try this:
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Prime wrote:How about using Scanner? A small example:
Amod Gupta wrote:
@henry thanks but i cant understand.
Amod Gupta wrote:
@sequence means i need to know the exact symbols between the numbers after parsing.
Amod Gupta wrote:@rob prime.I am using the following code but getting into an infnite loop any idea?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |