Question: Write in Java please! 7 . 4 8 Suppose a data file contains lines that consist of either a single inte - ger, or the
Write in Java please! Suppose a data file contains lines that consist of either a single inte
ger, or the name of a file that contains more lines. Note that a data file
may reference several other files and the referenced files may them
selves contain some additional file names, and so forth. Write a
method that reads a specified file and returns the sum of all the inte
gers in the file and any files that are referenced. You may assume that
no file is referenced more than once.
For the program should read the initial file name from the user. Attached is a sample data set for If the initial file was
Testtxt
then the call sequence is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
