Question: 2 . 1 1 . 2 : Print two strings in alphabetical order. Print the two strings, firstString and secondString , in alphabetical order. Assume
: Print two strings in alphabetical order.
Print the two strings, firstString and secondString in alphabetical order. Assume the strings are lowercase. End with newline.
Sample output:
capes rabbits
Learn how our autograder works
qxzqy
secondString scnr next;
firstString"rabbits";
secondString"capes";
if firstStringcompareTosecondString
System.out.printlnfirstString secondString;
else
System.out.printlnsecondString firstString;
Not all tests passed
Testing input rabbits capes
Your output
Testing input capes rabbits
Your output
Testing input clearly clear
Output differs. See highlights below.
Your output
Expected output
Testing input wand wand
Output differs. See highlights below.
Your output
Expected output
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
