Question: In this question you will create a method in Forecasting.java named read Data that reads the data from Demand.txt located in the input_files directory. a.


In this question you will create a method in Forecasting.java named read Data that reads the data from Demand.txt located in the input_files directory. a. Create a static method in Forecasting.java named readData with the following signature specifications: . access: public return type: two-dimensional String array arguments: none . b. In the readData method, create a two-dimensional array named demand Values that stores String values. The first row of Demand.txt contains column headers. readData should read those values in, but disregard (do nothing) with them. The second row in Demand.txt contains the number of periods of prior demand included in the file. That value should be read and used to size the first dimension of demand Values. The second dimension of demand Values should be specified so that both the month and the demand value can be stored in separate columns. c. Add additional code to readData that reads the month/demand values from Demand.txt and stores them in demand Values. d. Return demand Values. month demand 7 000 0 AW NP January 15 February 9 March 7 April 6 May 3 June 5 July 8 9 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
