how to identify if the user input is a currency symbol
in java