Book

The textbook for this course is: Introduction to Programming in Java (2nd edition).

The details of the book are:

Title Introduction to Programming in Java (2nd)
Authors Robert Sedgewick & Kevin Wayne
ISBN-13 978-0-672-33784-0
Edition Second
Year 2017
Pages 756

The book website is: https://introcs.cs.princeton.edu/java/home/

❗ You must obtain the book. The exercises and hand-ins are in it.

❗ Ensure you get the 2nd edition. The exercises have been renumbered.

â„šī¸ The textbook website contains an excerpt of the book. It is insufficient for the course.

Source Code

The source code for the standard library used for exercises and hand-ins can be found below.

SECTION PROGRAM DESCRIPTION / JAVADOC
1.5 StdIn.java read numbers and text from standard input
1.5 StdOut.java write numbers and text to standard output
1.5 StdDraw.java draw geometric shapes in a window
1.5 StdAudio.java create, play, and manipulate sound
1.5 StdAudioStereo.java create, play, and manipulate stereo sound
1.5 StdMidi.java play MIDI notes
2.2 StdRandom.java generate random numbers
2.2 StdStats.java compute statistics
2.2 StdArrayIO.java read and write 1D and 2D arrays
3.1 StdPicture.java process one color image
3.1 Picture.java process color images
3.1 GrayscalePicture.java process grayscale images
3.1 In.java read numbers and text from files and URLs
3.1 Out.java write numbers and text to files
3.1 Draw.java draw geometric shapes
3.1 DrawListener.java support keyboard and mouse events in Draw
3.2 Stopwatch.java measure running time (wall clock)
3.2 StopwatchCPU.java measure running time (CPU)
-- BinaryStdIn.java read bits from standard input
-- BinaryStdOut.java write bits to standard output
-- BinaryIn.java read bits from files and URLs
-- BinaryOut.java write bits to files
-- USA.txt US Cities

The above source code is available under the GPL license from the book authors.