Create StringToInteger.java

quite a lot boundary conditions, you'd better consider all possible circumstances.