If it is not explicitly told in following recipe, setting up services are described for Ubuntu 20.04 server, but applications are described for Xubuntu 20.04 workstation. If you use different Ubuntu version or Linux distribution, settings as well as content, names and places of configuration files may be different!
Got it.
Review the presentation Input and Output
Tasks
- Explore the jtm.activity09 package
- Implement the StreamEditor class to pass unit tests
If necessary, you can use the Apache IO package (or java.nio) package instead of the default java.io.* package to make file operations easier.
You can do manual testing like this (from your project folder), for example:
java -cp target/classes/ jtm.activity09.StreamEditor 2 aaa - -
When doing manual testing, indicate the end of the stream by pressing Ctrl+d.