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
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Question Posted: