How to convert a string to integer (expect to write a method for it) ? without using parseInt valueat stringtokenizer split (that what I suggested to use but they were all prohibited)
Anoniem
(a) write a method to convert a string digit to an int (lots of ways to do this) (b) int result = 0 (c) iterate through the string backwards, with the indexes starting from 0 - result += convert(current character) * 10^index ie "569" - 9 x 10^0 + 6 x 10^1 + 5 x 10^2 = 9 + 60 + 500 = 569