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.

10. Input and Output

Main steps

  1. Investigate jtm.activity10 package
  2. 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.

Additional information

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.


  

Created by Valdis Vītoliņš on 2017-01-03 08:07
Last modified by Valdis Vītoliņš on 2024-08-27 17:26
 
Xwiki Powered
Creative Commons Attribution 3.0 Unported License