Question: if ( firstString . compareTo ( secondString ) < 0 ) { System.out.println ( firstString + + secondString ) ; } else {
if firstStringcompareTosecondString
System.out.printlnfirstString secondString;
else
System.out.printlnsecondString firstString;
Testing input clearly clear
Output differs. See highlights below.
Your output
capes rabbits
Expected output
clear clearly
Testing input wand wand
Output differs. See highlights below.
Your output
capes rabbits
Expected output
wand wand
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
