Assignment5-6.java - Assignment 5 Arizona State University...

This preview shows page 1 - 2 out of 3 pages.

// 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: The Assignment 5 class displa ys a menu of choices// (add summer camp, search summer camp title,// list summer camps, quit, display menu) to a user// and performs the chosen task. It will keep asking a user to// enter the next choice until the choice of 'Q' (Quit) is// entered.import java.io.*; //to use InputStreamReader and BufferedReaderimport java.util.*; //to use ArrayListpublic class Assignment5{public static void main (String[] args){char input1;String inputInfo = new String();String line = new String();boolean operation;// ArrayList object is used to store SummerCamp objectsArrayList<SummerCamp> summerCampList = new ArrayList<SummerCamp>();try{printMenu(); // print out menu// create a BufferedReader object to read input from a keyboardInputStreamReader isr = new InputStreamReader (System.in);BufferedReader stdin = new BufferedReader (isr);do{

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture