Oracle Interview Question

Q1. Write a program to parse a string number without using the Integer class? "12345" with out using JAVA API, covert this to Integer 12345.