Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started