Question: My assignment is to write a Java program that displays the frequency of upper and lowercase letters from a string. This is my code so
My assignment is to write a Java program that displays the frequency of upper and lowercase letters from a string.
This is my code so far:

but my output doesn't display letters:

How do I fix my code so that the output becomes "The frequency of the letter A...The frequency of the letter B....etc" instead of numbers?
import java.util.Scanner public class main public static void main(String] args) Scanner keyboard-new Scanner(System.in) String text; Declare 2 arrays for upper and lower case letters intl upperCasenew int [26]; int[] lowe rcase# new int[26]; System.out.print("Enter a string: " textkeyboard.nexine0; /Initialize 26 location of both array with 0 for (inti-; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
