Course Solutions Uncategorized (Solved) : Java Assignment Second Class Code Personal Lending Library Getting Errors Scanner Need Imp Q27504348 . . . .

(Solved) : Java Assignment Second Class Code Personal Lending Library Getting Errors Scanner Need Imp Q27504348 . . . .

 

Java assignment – This is the second class code for a personallending library. I am getting errors on the scanner. Do I need tohave the import java.util.Scanner with the library class as well asthe main code?

Here is the code for the second class.

public class Library {

static Scanner in = new Scanner(System.in); //instantiation

MediaItem t = new MediaItem();

MediaItem[] items = new MediaItem[100];

String[] str = new String[100];

int numberOfItems = 0; //fields

int check = 0;

int called = 0;

int displayMenu(){ //methods

System.out.println(“1. Add new item n2. Mark an item as on loann3. List all items n4. Mark an item as returned n5. Quit”);

System.out.print(“What would you like

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post