Question: I am having errors with this Java code Please solve the errors I don t believe you need the csv file PLEASE SOLVE, MAKE THE
I am having errors with this Java code
Please solve the errors
I dont believe you need the csv file
PLEASE SOLVE, MAKE THE NECESSARY AND COMMENT WHERE THE CHSNGES WERE MADE
import java.ioBufferedReader;
import java.ioFileReader;
import java.ioIOException;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class Main
public static void mainString args
Read CSV file and create Cell objects
List cellList new ArrayList;
try BufferedReader br new BufferedReadernew FileReadercellscsv
String line;
while line brreadLine null
String data line.split;
Perform data cleaning and transformations here
Create Cell object and add to cellList
cellList.addnew celldata data Integer.parseIntdata data data Float.parseFloatdata data data Float.parseFloatdata data data data;
catch IOException e
eprintStackTrace;
Converts cellList to array to allow for an easier manipulation
cell cell cellList.toArraynew cell;
List unique values for each column
System.out.printlnUnique values for OEMs: cell.listUniqueValuesoem cell;
System.out.printlnUnique values for Models: cell.listUniqueValuesmodel cell;
Add a new cell
cell newCell new cellApple "iPhone "Active", mmfA "Super Retina XDR OLED", fA Bionic", "iOS ;
cell cell.addCellObjectcell newcell;
Calculate mean of body weight
System.out.printlnMean body weight: cell.calculateMeanbodyWeight cell;
System.out.printlnMean display size: cell.calculateMeandisplaySize cell;
Unit Testing
Test for bodyWeight
System.out.printlnTest for bodyWeight: cell.calculateMeanbodyWeight cell;
System.out.printlnTest for average weight: cell.calculateAverageWeightaverageWeight cell;
Generated Report
System.out.printlncellgenerateReport;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
