Class StringEnumerator

java.lang.Object
com.ehealthsystem.tools.StringEnumerator

public class StringEnumerator extends Object
  • Constructor Details

    • StringEnumerator

      public StringEnumerator()
  • Method Details

    • enumerate

      public static String enumerate(ArrayList<String> list)
      Display any string list (e.g. doctor's specializations) to the user in a friendly way The elements in the list are enumerated, separated by a comma
      Parameters:
      list - The list that is to be enumerated
      Returns:
      A single string, enumerating all the elements in the provided list