If you prefer to use another environment (such as Eclipse or Sublime), that’s perfectly fine—just be sure that you know how to do the following:
algs4.jar
to your Java classpath.
algs4.jar
?import
statements as needed, so you
won’t type import
statements explicitly.
algs4.jar
.
Here are links to the source code and Javadoc.
hello.zip
.
percolation
(the .zip extension is automatic).
zip hello.zip *.java
.
Here is some guidance for installing on your system.
while (!StdIn.isEmpty()) { String s = StdIn.readString(); ... }
System.out.println()
and StdOut.println()
print text to standard output;
the library call StdIn.readString()
reads text from standard input.
while (!StdIn.isEmpty()) { String s = StdIn.readString(); ... }