Is given word in descending order - Java Quiz Question


Write a program to check whether the characters in the given word are in descending order or not.

Input (String) Output (Boolean)
dcba true
zyxw true
zwyx false
zonked true
zeitgeist false
yule true
troubles false



class IsDescendingWord
{
    public static void main(String s[])
    {
        String inputWord = "zonked";
        System.out.println("Is " + inputWord + " in descending order : " + isInDescendingOrder(inputWord));

    }


    public static boolean isInDescendingOrder(String inputWord) {
    }

}