SummerCampParser.java - Assignment 5 Arizona State...

This preview shows page 1 out of 1 page.

// Assignment #: 5 // Arizona State University - CSE205 // Name: Vyom Desai // StudentID: 1216637513 // Lecture: T Th 10:30-11:45 // Time taken to complete the assignment: 3hrs // Description: public class SummerCampParser extends Assignment5 { public static SummerCamp parseStringToSummerCamp(String lineToParse) { SummerCamp summer; //step 1 declare an object of type SummerCamp //either use the split method from string class or use Delimeter from the scanner class //if first string is a robotics camp // camp = new RoboticsCamp() String parse[] = lineToParse.split(":"); if(parse[0].equalsIgnoreCase("DebateCamp"))

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture