Class DrBrown
- java.lang.Object
-
- DrBrown
-
public class DrBrown extends Object
This class provides the "explode" method that will be helpful for AY24 IC211 Project 1.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]explode(String pat)Explode a meeting time string into an array of dayperiod strings.
-
-
-
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"}.
-
-