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!7.48 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 7.48 the program should read the initial file name from the user. Attached is a sample data set for 7.48 If the initial file was
Test1.txt
then the call sequence is
 Write in Java please!7.48 Suppose a data file contains lines that

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!