Class DrBrown


  • public class DrBrown
    extends Object
    This class provides the "explode" method that will be helpful for AY24 IC211 Project 1.
    • Method Detail

      • explode

        public static String[] explode​(String pat)
        Explode a meeting time string into an array of dayperiod strings.
        Parameters:
        pat - A valid meeting time string (in USNA format) to be exploded, e.g. "MWF1,R12"
        Returns:
        An array of individual day/period(1-6) strings describing the days and periods covered by pat. For example, explode("MWF1,R12") returns {"M1","W1","F1","R1","R2"}.