//display the number of letters, digits, and whitespace character in a string import javax.swing.JOptionPane; public class eg24_StringAnalyzer { public static void main(String[] args) { String input; char[] array; int letters = 0; int digits = 0; int whitespaces = 0; input = JOptionPane.showInputDialog("Enter a string:"); array = input.toCharArray(); //method to convert the string to a char array for (int i=0; i