Question: Please help to fix JAVA code. I can not print and calculate trimmed Mean. The data use Iris.csv (can download from web) package javaapplication56; import

Please help to fix JAVA code. I can not print and calculate trimmed Mean. The data use Iris.csv (can download from web)

package javaapplication56;

import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; class StatisticalMethods{ private double [][]x; private final int row,col; private String []flowerType; public StatisticalMethods(String path){ row=150; col=4; x=new double[row][col]; flowerType=new String[row]; String line; try{ BufferedReader br=new BufferedReader(new FileReader(path)); line=br.readLine(); int j=0; while((line=br.readLine())!=null){ String []instance=line.split(","); for(int i=0;i

public class MainClass12{ public static void print(double []x){ System.out.println("SepalLengthCm, SepalWidthCm, PetalLengthCm, PetalWidthCm"); for(int i=0;i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!