Assignment5 - / Assignment #: / Name: / StudentID: /...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
// Assignment #: 5 // Name: Soln // StudentID: // Lecture: // Description: The Assignment 5 class displays a menu of choices // (add saving, checking, or money market accounts, // update their balance, search a bank account, list accounts, // 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*; //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 found = false; // ArrayList object is used to store member objects ArrayList accountList = new ArrayList(); try { printMenu(); // print out menu // create a BufferedReader object to read input from a keyboard InputStreamReader isr = new InputStreamReader (; BufferedReader stdin = new BufferedReader (isr); do { System.out.println("What action would you like to perform?");
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Assignment5 - / Assignment #: / Name: / StudentID: /...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online