Hello! So I've been completing some java coursework for a class next year but I've ran into a problem that I have no idea how to code for. I usually blow through these problems but I'm stunted at this. Don't even know where to start. I re-read the section on conditionals and looping but nowhere does it touch on string length or anything. Any help would be appreciated. The question states:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Suppose s, t, and w are strings that have already been created inside main. Write a statement or statements, to be added to main, that will determine if the lengths of the three strings are in order by length, smallest to largest. That is, your code should determine if s is strictly shorter than t, and if t is strictly shorter than w. If these conditions hold your code should print (the boolean value) true. If not, your code should print false. (Strictly means: no ties)
Example: if s, t, and w are "cat", "Hats", and "skies" your code should print true - their lengths are 3-4-5;
but if s, t, and w are "cats" "shirt", and "trust", then print false - their lengths are 4-5-5
Enter your code in the box below
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I would assume it has something to do with Booleans or if/then/else statements, but i'm still very confused! I mean, how would I even start to code something like this?! My book isn't telling me anything.