|
Re: if statement
|
Posted: Nov 30, 2005 10:07 PM
|
|
> @Kondwani Mkandawire > I wrote my solution a long time before clicking on the > "send" button, so I didn't even see your answer, my > solution has absolutely nothing to do with your post. > > The 'Java' solution means: A input usually is something > more then a character. Unexperienced programmers tend to > check every character. So I suggested to use the built in > methods to do some basic operations like this. > Don't know how exactly it is implemented, but I think (it > is ony my opinion, I did not read the code) the parseInt > method does more or less the same as you wrote in your > example.
Sorry, My baad.
|
|