Is given word in ascending order - Java Quiz Question

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

Input String word Output (Boolean)
billowy true
abcd true
adfq true
acbd false
batting false
effort true
egocentric false

class IsAscendingWord
    public static void main(String s[])
        String inputWord = "abbess";
        System.out.println("Is " + inputWord + " in ascending order : " + isInAscendingOrder(inputWord));;


    public static boolean isInAscendingOrder(String inputWord) {