Computer Science > QUESTIONS & ANSWERS > Assignment 5 - Arizona State University CSE 205 (All)
Assignment #: 5 // Arizona State University - CSE205 // // Description: The Assignment 5 class displays a menu of choices 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 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 student objects ArrayList<Student> studentList = new ArrayList<Student>(); 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?"); line = stdin.readLine().trim(); input1 = line.charAt(0); input1 = Character.toUpperCase(input1); if (line.length() == 1) [Show More]
Last updated: 2 years ago
Preview 1 out of 3 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Feb 04, 2023
Number of pages
3
Written in
This document has been written for:
Uploaded
Feb 04, 2023
Downloads
0
Views
126
In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·