Question: In this exercise session, you will read an external file and create a database in Java. The file contains a list of 150 observations of

In this exercise session, you will read an external file and create a database in Java. The file contains a list of 150 observations of iris flowers from three different species. There are 4 measurements of given flowers: sepal length, sepal width, petal length and petal width, all in the same unit of centimetres. Three species of iris flowers are setosa, versicolor or virginica.

Exercise instructions: 1. Create a new class called FileLoad. 2. Create a new class called Flower in the same package with FileLoad. 3. Write a constructor for Flower class with the following parameters: - type; - dimensional parameters (sepal length, sepal width, petal length and petal width). 4. Load file iris.csv to Java and extract data into internal database (i.e., ArrayList). 5. Print out the created database of iris flowers.

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!