Question: in java OrderStrings: Write a program that reads two strings (all letters in lowercase) from the keyboard. The program then displays the two strings in
in javaOrderStrings: Write a program that reads two strings (all letters in lowercase) from the keyboard. The program then displays the two strings in alphabetical order. Here is a sample run: Enter two words (in lowercase): java apple Ordered Output: apple java Hint: Check compare to () method of String class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
