13
answers
0
watching
377
views
23 May 2018

(d) Suppose there is a class Book Store and inside this, is a method with the following header: public boolean stockWarehouse (String filename) throws Not EnoughFunds Exception You then write the following code inside the class Shoppingmall: 1 import java.util.Scanner; 3 public class Shoppingmall sous- public initialize void initialize(String[] args) Bookstore indigo - new Bookstore); Scanner reader - new Scanner (System.in); System.out.println("Please enter the file with the list of contents to buy."); String Filename - reader.nextLine(); indigo.stockWarehouse (filename) However, you get the following crror: Shoppingmall.java:10: unreported exception Not EnoughFundsException; must be caught or declared to be thrown indigo.stockWarehouse (filename); 1 error 1)Explain why the error occurs and write the code to fix it.

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Reid Wolff
Reid WolffLv2
26 May 2018
Already have an account? Log in

Related questions

Related Documents

Weekly leaderboard

Start filling in the gaps now
Log in