Question: I need this on notepad++.. I keep struggling to code properly, getting too many errors Question 2. (StringChecker.java) Write a program that collects three Strings
Question 2. (StringChecker.java) Write a program that collects three Strings from the user. Determine and display whether the strings are all equal, in increasing or decreasing lexicographical (alphabetical) order or not in any specific order at all. (Hint: If you are having a hard time getting this to work with Strings try it with integers first. The logic is the same but the syntax is a bit different.) c:Icoscl0461a21>java StringChecker Enter 3 strings, one per line: apples bananas coconuts Your strings are in lexicographical order (ascending)! C: Icosc10461a21java StringChecker Enter 3 strings, one per line: coconuts bananas apples Your strings are in lexicographical order (descending)! c:lcosc10461a21>java StringChecker Enter 3 strings, one per line: apples apples bananas Your strings are in lexicographical order (ascending) C:lcosc10461a21>java StringChecker Enter 3 strings, one per line: apples coconuts bananas Those strings are not in any order i(
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
