Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started