#! /bin/bash export "CLASSPATH=$CLASSPATH:.:$HOME/algs4/algs4.jar:$HOME/algs4/stdlib.jar" CLASSES="Percolation PercolationStats" rm *.class *.zip 2>/dev/null for kls in $CLASSES; do ~/algs4/bin/checkstyle ${kls}.java javac ${kls}.java done ~/algs4/bin/findbugs *.class echo "RUN..." java PercolationStats 200 100 java PercolationStats 200 100 java PercolationStats 2 10000 java PercolationStats 2 1000000 zip percolation.zip Percolation.java PercolationStats.java