Chapter 25. Java I/O
So far in this book, we have demonstrated most of the classes we developed using simple driver programs that hard-coded the input arguments required by the class. This approach is okay for demonstration programs but not for real-life scientific and engineering applications. Ideally, you want to compile your analysis classes and driver programs once and have them be flexible enough to accept different input arguments every time the program is executed. What's more, you may wish to do different things with the output from your applications. Sometimes, printing the output to the screen may be sufficient. Other times you may want to write the output to a file. You may even wish to permanently save the data structure associated ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access