Practical Coding in Java

Learn to write and validate your own code

Darren Kessner, PhD

(revised January 9, 2026)

Previous: LoadStrings

Coding Exercises: File IO

saveStrings()

Write a Processing-style saveStrings() function that saves an array of Strings to a file. Note: see the write_data() function in the HelloFile example in this chapter.

void saveStrings(String filename, String[] data)

Next: