Write a program to count the frequency of each vowel in a given string in Java. For example, Input “My name is John Smith” Output Number of ‘a’ = 1 Number of ‘e’ = 1 Number of ‘i’ = 2 Number of ‘o’ = 1 Number of ‘u’ = 0 Steps Let str be the input string. Initialize an integer array of size 5. Let the name of the array be cnt. Fill cnt with …
Write a Java Program to Sort an Array by using Bubble Sort algorithm in both ascending order and descending order. Bubble Sort in Java.
Make sure you have correctly set up the Java Runtime Environment before attempting to run the java program.