Class Utilities


  • public class Utilities
    extends Object
    Utilities
    Author:
    Jeff Trent
    • Constructor Detail

      • Utilities

        public Utilities()
    • Method Detail

      • sortInhabitantsDescriptor

        public static String sortInhabitantsDescriptor​(String in,
                                                       boolean innerSort)
        Sorts all of the lines in an inhabitants descriptor
        Parameters:
        in - the input string
        innerSort - true if each line in the inhabitants file is sorted as well
        Returns:
        the sorted output string