Original Web site:http://algs4.cs.princeton.edu/linux/
Part. I
[username:~/][username:~/] mkdir algs4[username:~/] CD algs4[username:~/algs4/] mkdir bin[username:~/introcs/] sudo apt-get update[username:~/introcs/] sudo apt-get Install openjdk-7-jdk
Part. Ii
wget http://Algs4.cs.princeton.edu/linux/drjava.jarwget http://Algs4.cs.princeton.edu/linux/drjavachmod theDRJAVAMV Drjava binwget http://Algs4.cs.princeton.edu/code/stdlib.jarwget http://Algs4.cs.princeton.edu/code/algs4.jarwget http://ALGS4.CS.PRINCETON.EDU/LINUX/JAVAC-ALGS4wget http://ALGS4.CS.PRINCETON.EDU/LINUX/JAVA-ALGS4chmod theJAVAC-ALGS4 java-ALGS4MV Javac-ALGS4 binmv Java-ALGS4 binwget http://Algs4.cs.princeton.edu/linux/checkstyle.zipwget http://Algs4.cs.princeton.edu/linux/findbugs.zipUnzip Checkstyle.zipunzip findbugs.zipwget http://Algs4.cs.princeton.edu/linux/checkstyle.xmlwget http://Algs4.cs.princeton.edu/linux/findbugs.xmlwget http://ALGS4.CS.PRINCETON.EDU/LINUX/CHECKSTYLE-ALGS4wget http://ALGS4.CS.PRINCETON.EDU/LINUX/FINDBUGS-ALGS4chmod theCHECKSTYLE-ALGS4 findbugs-ALGS4MV Checkstyle-ALGS4 BINMV findbugs-algs4 binmv checkstyle.xml checkstyle-5.5MV Findbugs.xml findbugs-2.0.3
Batch to setup JAVA programming environment for algorithm class from Priston