Question: Create a file data with diferent names ( ~ 1 0 ) preferably a data.txt file Make each name in to a new line as

Create a file data with diferent names (~10) preferably a data.txt file
Make each name in to a new line as follows:
nova
anthony
gabriel
...... ect.
Then use eclipse/IDE and Java code to store the data from the file to an Arraylist.
Then print the array.
As part of week 4 learning, check if the file exists and also check for if there is any data in the file (i.e. names)
You can use things like isEmpty or check if the array size is empty./0java

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!