Here are some of the programs we examined in class, and more:
Person.java
Student.java
Kid.java
StudentTest.java
StudentTest1.java
StudentTest2.java
FileWrite.java
FileReadScanner.java
FileReadScanner2.java
FileReadScanner3.java
WordCount.java
poem.txt
hello.txt
FileReadWriteScanner.java
numbers.txt
LS.java
Hint: modify the code in FileReadWriteScanner.java above.
This program MyCat is equivalent to the Unix command
cat file1.txt file2.txt > file3.txt
Type (in the lab computer)
man cat
to read about the manual pages on cat.
Try cat with your files. Be aware, however, that depending
where you create file1.txt and file2.txt (Win, Unix, MacOs) the results
could differ because the end of line is handled differently
in these platforms.