trying to check if the letters of the word are sorted alphabetically.but i don\'t get any return from the method.
import java.util.Scanner; public class