how to code this one??
1. Create a program that accepts character input then determine whether it is letter, number or a symbol. If it is a letter, display whether it is Uppercase or lowercase letter. If it is a digit, display its square root. (Note: Use Character and JOptionPane class) Use the following predefined methods: isLetter( ) isDigit( ) charAt( ) length( ) sqrt( ) showConfirmDialog( ) SAMPLE OUTPUT 1: Enter a character: 9 The character is a digit. The square root of 9 is 3.0 Try again?[Y/N] SAMPLE OUTPUT 2: Enter a character: * The character is a symbol. Try again?[Y/N] SAMPLE OUTPUT 3: Enter a character: A The character is an Uppercase letter. Try again?[Y/N] SAMPLE OUTPUT 4: Enter a character: string10 Invalid Input. Input a character only. Try again?[Y/N]