You will want to use Character.getNumericValue(temp1) to convert temp1 and temp2 into integer values.
- Jim