-
Coursework help!
Please if anyone could help be greatly appreciated!
Brief
Read in a word and display if the letters are in ascending order or not in ascending order. Ignore letter case in your comparison.
Example input data Commentary
almost Line 1
effort Line 2
end Line 3
knotty
known
END Terminator
Expected output
Almost letters in ascending order
Effort letters in ascending order
End letters not in ascending order
Knotty letters in ascending order
Known letters not in ascending order
Remember to submit the whole application which must have the class name Main.
Remember any line printed that contains a # will not be considered as part of your answer.
This is so that you can write out a meaningful prompt for any data (containing a # character) and this line of text will be ignored in the comparison of your answer.
If the String variable name holds the character string END then name.equals("END") will return true.
-
Re: Coursework help!