Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How do I read each column of a txt file, and place them in separate arrays in Java? text file: 1234 23 1.2 90.7 34

How do I read each column of a txt file, and place them in separate arrays in Java?

text file:

1234 23 1.2 90.7 34 4.6 78.8 66 5.3 4567 10 6.8 87.3 13 4.2 65.6 60 3.1

output:

array1[]={1234, 90.7, 78.8,4567, 87.3, 65.6}

array2[]={23,34,66,10,13,60}

array3[]={1.2,4.6,5.3,6.8,4.2,3.1}

array1[],array2[],array3 are double types.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Science For Dummies

Authors: Lillian Pierson ,Jake Porway

2nd Edition

1119327636, 978-1119327639

Students also viewed these Databases questions

Question

What is conservative approach ?

Answered: 1 week ago

Question

What are the basic financial decisions ?

Answered: 1 week ago