Write a method called charsSorted that accepts a string as its parameter and returns true if the

Question:

Write a method called charsSorted that accepts a string as its parameter and returns true if the characters in the string appear in sorted alphabetical order. For example, the calls of charsSorted("abcde") and charsSorted("bins") should return true, but the call of charsSorted("beads") should return false.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: