Assignment5.java - Assignment 5 Name Arun Das(Teaching Assistant StudentID XXXXXXXXXX Lecture T TH 12:00-1:15 PM Description The Assignment 5 class

Assignment5.java - Assignment 5 Name Arun Das(Teaching...

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

// Assignment # : 5 // Name : Arun Das (Teaching Assistant) // StudentID : XXXXXXXXXX // Lecture : T TH 12:00-1:15 PM // Description : The Assignment 5 class displays a menu of choices // (add volunteers, full time employees, or part time employees, // compute their pay, search an employee, list employees, // quit, display menu) to a user. // Then it 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 BufferedReader import java.util.*; //to use ArrayList public 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 employee objects ArrayList<Employee> employeeList = new ArrayList<Employee>(); try { printMenu(); // print out menu // create a BufferedReader object to read input from a keyboard InputStreamReader isr = new InputStreamReader (System.in); BufferedReader stdin = new BufferedReader (isr); do { System.out.println("What action would you like to perform?");
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Summer '19
  • Void, employee emp

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture