SummerCampParser.java - public class SummerCampParser...

This preview shows page 1 out of 1 page.

public class SummerCampParser { public static SummerCamp parseStringToSummerCamp(String lineToParse) { String fields[] = lineToParse.split(":"); if(fields[0].equalsIgnoreCase("DebateCamp")) return new DebateCamp(fields[1],fields[2],Double.parseDouble(fields[3]),Integer.parseInt(field s[4]),Double.parseDouble(fields[5]),fields[6]); else if(fields[0].equalsIgnoreCase("RoboticsCamp"))

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture