Angie A.

asked • 04/30/20

Need help understanding this method

writeToFile

public static void writeToFile(double[][] data,

java.io.File outputFile)

throws java.io.FileNotFoundException

Writes the ragged array of doubles into the file. Each row is on a separate line within the file and each double is separated by a

space.

Parameters:

data - two dimensional ragged array of doubles

outputFile - the file to write to

Throws:

java.io.FileNotFoundException - if outputFile is not valid

1 Expert Answer

By:

Patrick B. answered • 05/02/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.