See the pdf write-up for more information on the programs.
To Compile: (from terminal)
javac P1.java
javac P2.java
To Execute: (from terminal)
java P1
java P2
Using bash scripts: (from terminal)
# navigate to "test" folder
./run # copies and compiles files
./clean # deletes files, both copied and compiled
# use "Execute" commands to test the files