Menu
Question Index
...

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

}

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