how to convert character to integer in java