#! /bin/bash export "CLASSPATH=$CLASSPATH:.:$HOME/algs4/algs4.jar:$HOME/algs4/stdlib.jar" CLASSES="PointSET KdTree" rm *.class *.zip 2>/dev/null echo "javac RectHV.java" && javac RectHV.java for kls in $CLASSES; do ~/algs4/bin/checkstyle ${kls}.java echo "javac ${kls}.java" && javac ${kls}.java done ~/algs4/bin/findbugs *.class echo "RUN..." for kls in KdTreeVisualizer NearestNeighborVisualizer RangeSearchVisualizer; do echo "javac ${kls}.java" && javac ${kls}.java && java ${kls} done zip kdtree.zip PointSET.java KdTree.java