Question: 3. Write a Java class hw1.SortStrings that accepts command line inputs of any strings that can include white space characters, terminates the input with

3. Write a Java class hw1.SortStrings that accepts command line inputs of any strings that can include white space characters, terminates the input with a line containing three hyphens ---, stores the inputs in an arrays of strings, and prints out the input lines in non-decreasing order, as illustrated in the following example run. You should use java.lang.Arrays.sort() to do the sorting of the strings in an array. > java hw1.SortStrings This is test line 1 CS241 is interesting Java programming --- CS241 is interesting Java programming This is test line 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
