Question: Write a Java program named RandomChar that generates 10 random characters between 'a' and 's' inclusive and then store them in an array named charArray.

 Write a Java program named RandomChar that generates 10 random characters

Write a Java program named RandomChar that generates 10 random characters between 'a' and 's' inclusive and then store them in an array named charArray. The program should do the following: a. Display the array charArray b. Count the number of occurrences of the character 'o' in the array charArray and then display the count. c. Replace the character 'f as 'F' in the array charArray

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!