Menu
Question Index
...

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) {
    }

}

Doubts

Problems

Topic: Conclusion Of Strings In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App