This directory contains individual files which may be compiled without external dependencies. These examples should be used with Java 11+.
StringStream.java- Basic streaming filter and collect exampleOtterApp.java- Example application using custom classes. NeedsOtter.javaandKeeper.javacompiled.Otter.java- Class definition for use inOtterApp.javaKeeper.java- Class definition for use inOtterApp.java
These examples may be loaded and run individually in an IDE. You may need to set the project JDK version.
To compile and run these samples at the command-line, do the following:
cd AppendixB
javac *.java
java StringStream