Question: Print the two strings, firstString and secondString, in alphabetical order. Assume the strings are lowercase. End with newline. Sample output: capes rabbits 1 test passed

 Print the two strings, firstString and secondString, in alphabetical order. Assume

Print the two strings, firstString and secondString, in alphabetical order. Assume the strings are lowercase. End with newline. Sample output: capes rabbits 1 test passed 5 6 All tests passed 1 import java.util.Scanner; 2 3 public class OrderStrings { 4 public static void main (String [] args) { Scanner scnr = new Scanner(System.in); String firstString; 7 String secondString; 8 firstString = scnr.next(); 10 secondString - scnr.next(); 11 12 \* Your solution goes here */ 13 14 } 15} 9

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!