Question: Java. Write a program that takes two strings and outputs the longer string, followed by is longer than, and the shorter string. If the
Java. Write a program that takes two strings and outputs the longer string, followed by is longer than", and the shorter string. If the strings have the same length then output the strings followed by "have the same length". When the program automatically puts in the input
Ex If the input is:
almond pistachio
the output is:
pistachio is longer than almond java
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
