write a programme to check the given character is capital,small,digit or special character code example Example: check if char is number java Character.isDigit(str.charAt(i));