use String in Java to convert String to Integer