Originally posted by Anil Verghese:
does anyone know how to convert String to primitive int without use of Wrapper classes.
Not sure I understand what you are asking. Do you want to do something like
without using the nice builtin parse functions?
The obvious way is to convert the String into a byte array, then iterate over the array. Pick up a byte, subtract "0" (ascii character zero) to get the value as an integer, then add it, and multiply by ten every time you pick up the next character.
Not sure this is really "advanced" so maybe I'm not understanding.