[java] Converting a String array into an int Array in java