The following text was written to the standard output stream when the PrimesDemo program was executed from IntelliJ.
/usr/lib/jvm/java-1.11.0-openjdk-amd64/bin/java -javaagent:/opt/intellij-idea-community/lib/idea_rt.jar=46091:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath /home/zverheec/IdeaProjects/cs1/out/production/cs1:/home/zverheec/Downloads/SimplePainter.jar:/home/zverheec/Downloads/SimpleComposer.jar:/home/zverheec/Downloads/jfugue-4.0.3-with-musicxml.jar arraylistplay.Primes size of primes list = 4 first prime = 2 last prime = 7 last prime = 7 The initial list ... 2 3 5 7 The final list ... 7 3 5 2 Process finished with exit code 0