Write a program that reads in three strings, sorts them lexicographically, calculates the size of each string, and creates an acronym using the first character of each string. Display the strings in order on separate lines. Display the length of each string (in order) on the same line (use a message to state you are printing the length of each string). Display the acronym (in order). For Example: Enter three strings: Charlie Able Baker Able Baker Charlie The length of each string is 4, 5, 7. The acronym is ABC.
Java:
Write a program that reads in three strings, sorts them lexicographically, calculates the size of each string, and creates an acronym using the first character of each string. Display the strings in order on separate lines. Display the length of each string (in order) on the same line (use a message to state you are printing the length of each string). Display the acronym (in order).
For Example:
Enter three strings: Charlie Able Baker
Able
Baker
Charlie
The length of each string is 4, 5, 7.
The acronym is ABC.
required:
To Write a program that reads in three strings, sorts them lexicographically, calculates the size of each string, and creates an acronym using the first character of each string.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images