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.
Main steps
- Investigate jtm.activity10 package
- Implement class StreamEditor to pass unit tests
If necessary, you can use Apache IO package (or java.nio) package instead of default java.io.* package for easier String from/to file operations.
You can do manual test for your implementation in following way (from folder of your project):
java -cp target/classes/ jtm.activity10.StreamEditor 2 aaa - -
When do manual testing, you signal end of stream by pressing Ctrl+d.