hello...i m makin a calculator which inputs a expression n gives the result.
suppose i hv entered an expression( e.g. 12 + 3*5 -7) into an string variable .now if i want to check the string from starting index that it contains an integer or not ,then what is the idea...plezz help me out...i m a new user to java .
thank you in advance...!!
mayursharma
0
Light Poster
Recommended Answers
Jump to Posti want to check the string from starting index that it contains an integer
Define what you mean by an integer? How many integers does: 12 + 3*5 -7 contain?
I see 5: 12357To test if a string contains an integer (define integer to be a digit char …
All 4 Replies
NormR1
563
Posting Sage
Team Colleague
jon.kiparsky
326
Posting Virtuoso
mayursharma
0
Light Poster
jon.kiparsky
326
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.