Coding Questions -
Write a method that takes in two strings and prints the two strings in alphabetical order. Assume the strings are lowercase. End with newline.
Given three ints, a b c, one of them is small, one is medium and one is large. Return true if the three values are evenly spaced, so the difference between small and medium is the same as the difference between medium and large.
evenlySpaced(2, 4, 6) → true
evenlySpaced(4, 6, 2) → true
evenlySpaced(4, 6, 3) → false
Random number guesser -write a method that will generate a random int, ask the user to input a number and then return how the user input compared to the random number. You may assume that Scanner has been imported and there is a Scanner instance variable named console that you can use to get the user input.
"Ice it" Make a method that will take in a CoffeeOrder and change the temperature of it to 10 degrees.
Given a string, return true if it ends in "ly".
endsLy("oddly") → true
endsLy("y") → false
endsLy("oddy") → false