A B C D E F G H I K L M N O P R S T U V W Y 

A

actionPerformed(ActionEvent) - Method in class princeton.introcs.Draw
This method cannot be called directly.
actionPerformed(ActionEvent) - Method in class princeton.introcs.Picture
Opens a save dialog box when the user selects "Save As" from the menu.
actionPerformed(ActionEvent) - Method in class princeton.introcs.StdDraw
This method cannot be called directly.
arc(double, double, double, double, double) - Method in class princeton.introcs.Draw
Draw an arc of radius r, centered on (x, y), from angle1 to angle2 (in degrees).
arc(double, double, double, double, double) - Static method in class princeton.introcs.StdDraw
Draw an arc of radius r, centered on (x, y), from angle1 to angle2 (in degrees).

B

bernoulli(double) - Static method in class princeton.introcs.StdRandom
Return a boolean, which is true with probability p, and false otherwise.
bernoulli() - Static method in class princeton.introcs.StdRandom
Return a boolean, which is true with probability .5, and false otherwise.
BinaryIn - Class in princeton.introcs
Binary input.
BinaryIn() - Constructor for class princeton.introcs.BinaryIn
Create a binary input stream from standard input.
BinaryIn(InputStream) - Constructor for class princeton.introcs.BinaryIn
Create a binary input stream from an InputStream.
BinaryIn(Socket) - Constructor for class princeton.introcs.BinaryIn
Create a binary input stream from a socket.
BinaryIn(URL) - Constructor for class princeton.introcs.BinaryIn
Create a binary input stream from a URL.
BinaryIn(String) - Constructor for class princeton.introcs.BinaryIn
Create a binary input stream from a filename or URL name.
BinaryOut - Class in princeton.introcs
Binary output.
BinaryOut(OutputStream) - Constructor for class princeton.introcs.BinaryOut
Create a binary output stream from an OutputStream.
BinaryOut() - Constructor for class princeton.introcs.BinaryOut
Create a binary output stream from standard output.
BinaryOut(String) - Constructor for class princeton.introcs.BinaryOut
Create a binary output stream from a filename.
BinaryOut(Socket) - Constructor for class princeton.introcs.BinaryOut
Create a binary output stream from a Socket.
BinaryStdIn - Class in princeton.introcs
Binary standard input.
BinaryStdOut - Class in princeton.introcs
Binary standard output.
BLACK - Static variable in class princeton.introcs.Draw
 
BLACK - Static variable in class princeton.introcs.StdDraw
 
BLUE - Static variable in class princeton.introcs.Draw
 
BLUE - Static variable in class princeton.introcs.StdDraw
 
BOOK_BLUE - Static variable in class princeton.introcs.Draw
Shade of blue used in Introduction to Programming in Java.
BOOK_BLUE - Static variable in class princeton.introcs.StdDraw
Shade of blue used in Introduction to Programming in Java.
BOOK_LIGHT_BLUE - Static variable in class princeton.introcs.StdDraw
 
BOOK_RED - Static variable in class princeton.introcs.Draw
Shade of red used in Algorithms 4th edition.
BOOK_RED - Static variable in class princeton.introcs.StdDraw
Shade of red used in Algorithms 4th edition.

C

cauchy() - Static method in class princeton.introcs.StdRandom
Return a real number with a Cauchy distribution.
circle(double, double, double) - Method in class princeton.introcs.Draw
Draw a circle of radius r, centered on (x, y).
circle(double, double, double) - Static method in class princeton.introcs.StdDraw
Draw a circle of radius r, centered on (x, y).
clear() - Method in class princeton.introcs.Draw
Clear the screen to the default color (white).
clear(Color) - Method in class princeton.introcs.Draw
Clear the screen to the given color.
clear() - Static method in class princeton.introcs.StdDraw
Clear the screen to the default color (white).
clear(Color) - Static method in class princeton.introcs.StdDraw
Clear the screen to the given color.
close() - Method in class princeton.introcs.BinaryOut
Close and flush the binary output stream.
close() - Static method in class princeton.introcs.BinaryStdIn
Close this input stream and release any associated system resources.
close() - Static method in class princeton.introcs.BinaryStdOut
Flush and close standard output.
close() - Method in class princeton.introcs.In
Close the input stream.
close() - Method in class princeton.introcs.Out
Close the output stream.
close() - Static method in class princeton.introcs.StdAudio
Close standard audio.
close() - Static method in class princeton.introcs.StdOut
Close standard output.
CYAN - Static variable in class princeton.introcs.Draw
 
CYAN - Static variable in class princeton.introcs.StdDraw
 

D

DARK_GRAY - Static variable in class princeton.introcs.Draw
 
DARK_GRAY - Static variable in class princeton.introcs.StdDraw
 
discrete(double[]) - Static method in class princeton.introcs.StdRandom
Return a number from a discrete distribution: i with probability a[i].
Draw - Class in princeton.introcs
Draw.
Draw(String) - Constructor for class princeton.introcs.Draw
Create an empty drawing object with the given name.
Draw() - Constructor for class princeton.introcs.Draw
Create an empty drawing object.

E

elapsedTime() - Method in class princeton.introcs.Stopwatch
Return elapsed time (in seconds) since this object was created.
ellipse(double, double, double, double) - Method in class princeton.introcs.Draw
Draw an ellipse with given semimajor and semiminor axes, centered on (x, y).
ellipse(double, double, double, double) - Static method in class princeton.introcs.StdDraw
Draw an ellipse with given semimajor and semiminor axes, centered on (x, y).
equals(Object) - Method in class princeton.introcs.Picture
Is this Picture equal to obj?
exists() - Method in class princeton.introcs.BinaryIn
Does the binary input stream exist?
exists() - Method in class princeton.introcs.In
Does the input stream exist?
exp(double) - Static method in class princeton.introcs.StdRandom
Return a real number from an exponential distribution with rate lambda.

F

filledCircle(double, double, double) - Method in class princeton.introcs.Draw
Draw filled circle of radius r, centered on (x, y).
filledCircle(double, double, double) - Static method in class princeton.introcs.StdDraw
Draw filled circle of radius r, centered on (x, y).
filledEllipse(double, double, double, double) - Method in class princeton.introcs.Draw
Draw an ellipse with given semimajor and semiminor axes, centered on (x, y).
filledEllipse(double, double, double, double) - Static method in class princeton.introcs.StdDraw
Draw an ellipse with given semimajor and semiminor axes, centered on (x, y).
filledPolygon(double[], double[]) - Method in class princeton.introcs.Draw
Draw a filled polygon with the given (x[i], y[i]) coordinates.
filledPolygon(double[], double[]) - Static method in class princeton.introcs.StdDraw
Draw a filled polygon with the given (x[i], y[i]) coordinates.
filledRectangle(double, double, double, double) - Method in class princeton.introcs.Draw
Draw a filled rectangle of given half width and half height, centered on (x, y).
filledRectangle(double, double, double, double) - Static method in class princeton.introcs.StdDraw
Draw a filled rectangle of given half width and half height, centered on (x, y).
filledSquare(double, double, double) - Method in class princeton.introcs.Draw
Draw a filled square of side length 2r, centered on (x, y).
filledSquare(double, double, double) - Static method in class princeton.introcs.StdDraw
Draw a filled square of side length 2r, centered on (x, y).
flush() - Method in class princeton.introcs.BinaryOut
Flush the binary output stream, padding 0s if number of bits written so far is not a multiple of 8.
flush() - Static method in class princeton.introcs.BinaryStdOut
Flush standard output, padding 0s if number of bits written so far is not a multiple of 8.

G

gaussian() - Static method in class princeton.introcs.StdRandom
Return a real number with a standard Gaussian distribution.
gaussian(double, double) - Static method in class princeton.introcs.StdRandom
Return a real number from a gaussian distribution with given mean and stddev
geometric(double) - Static method in class princeton.introcs.StdRandom
Return an integer with a geometric distribution with mean 1/p.
get(int, int) - Method in class princeton.introcs.Picture
Return the color of pixel (i, j).
getFont() - Method in class princeton.introcs.Draw
Get the current font.
getFont() - Static method in class princeton.introcs.StdDraw
Get the current font.
getJLabel() - Method in class princeton.introcs.Picture
Return a JLabel containing this Picture, for embedding in a JPanel, JFrame or other GUI widget.
getPenColor() - Method in class princeton.introcs.Draw
Get the current pen color.
getPenColor() - Static method in class princeton.introcs.StdDraw
Get the current pen color.
getPenRadius() - Method in class princeton.introcs.Draw
Get the current pen radius.
getPenRadius() - Static method in class princeton.introcs.StdDraw
Get the current pen radius.
GRAY - Static variable in class princeton.introcs.Draw
 
GRAY - Static variable in class princeton.introcs.StdDraw
 
GREEN - Static variable in class princeton.introcs.Draw
 
GREEN - Static variable in class princeton.introcs.StdDraw
 

H

hasNextKeyTyped() - Method in class princeton.introcs.Draw
Has the user typed a key?
hasNextKeyTyped() - Static method in class princeton.introcs.StdDraw
Has the user typed a key?
hasNextLine() - Method in class princeton.introcs.In
Does the input stream have a next line?
hasNextLine() - Static method in class princeton.introcs.StdIn
Does standard input have a next line?
height() - Method in class princeton.introcs.Picture
Return the height of the picture in pixels.

I

In - Class in princeton.introcs
Input.
In() - Constructor for class princeton.introcs.In
Create an input stream for standard input.
In(Socket) - Constructor for class princeton.introcs.In
Create an input stream from a socket.
In(URL) - Constructor for class princeton.introcs.In
Create an input stream from a URL.
In(File) - Constructor for class princeton.introcs.In
Create an input stream from a file.
In(String) - Constructor for class princeton.introcs.In
Create an input stream from a filename or web page name.
isEmpty() - Method in class princeton.introcs.BinaryIn
Returns true if the binary input stream is empty.
isEmpty() - Static method in class princeton.introcs.BinaryStdIn
Returns true if standard input is empty.
isEmpty() - Method in class princeton.introcs.In
Is the input stream empty?
isEmpty() - Static method in class princeton.introcs.StdIn
Is there only whitespace left on standard input?
isKeyPressed(int) - Static method in class princeton.introcs.StdDraw
Is the keycode currently being pressed? This method takes as an argument the keycode (corresponding to a physical key).

K

keyPressed(KeyEvent) - Method in class princeton.introcs.Draw
This method cannot be called directly.
keyPressed(KeyEvent) - Method in class princeton.introcs.StdDraw
This method cannot be called directly.
keyReleased(KeyEvent) - Method in class princeton.introcs.Draw
This method cannot be called directly.
keyReleased(KeyEvent) - Method in class princeton.introcs.StdDraw
This method cannot be called directly.
keyTyped(KeyEvent) - Method in class princeton.introcs.Draw
This method cannot be called directly.
keyTyped(KeyEvent) - Method in class princeton.introcs.StdDraw
This method cannot be called directly.

L

LIGHT_GRAY - Static variable in class princeton.introcs.Draw
 
LIGHT_GRAY - Static variable in class princeton.introcs.StdDraw
 
line(double, double, double, double) - Method in class princeton.introcs.Draw
Draw a line from (x0, y0) to (x1, y1).
line(double, double, double, double) - Static method in class princeton.introcs.StdDraw
Draw a line from (x0, y0) to (x1, y1).
loop(String) - Static method in class princeton.introcs.StdAudio
Loop a sound file (in .wav or .au format) in a background thread.

M

MAGENTA - Static variable in class princeton.introcs.Draw
 
MAGENTA - Static variable in class princeton.introcs.StdDraw
 
main(String[]) - Static method in class princeton.introcs.BinaryIn
Test client.
main(String[]) - Static method in class princeton.introcs.BinaryOut
Test client.
main(String[]) - Static method in class princeton.introcs.BinaryStdIn
Test client.
main(String[]) - Static method in class princeton.introcs.BinaryStdOut
Test client.
main(String[]) - Static method in class princeton.introcs.Draw
Test client.
main(String[]) - Static method in class princeton.introcs.In
Test client.
main(String[]) - Static method in class princeton.introcs.Out
A test client.
main(String[]) - Static method in class princeton.introcs.Picture
Test client.
main(String[]) - Static method in class princeton.introcs.StdArrayIO
Test client.
main(String[]) - Static method in class princeton.introcs.StdAudio
Test client - play an A major scale to standard audio.
main(String[]) - Static method in class princeton.introcs.StdDraw
Test client.
main(String[]) - Static method in class princeton.introcs.StdIn
Unit test
main(String[]) - Static method in class princeton.introcs.StdOut
 
main(String[]) - Static method in class princeton.introcs.StdRandom
Unit test.
main(String[]) - Static method in class princeton.introcs.StdStats
Test client.
max(double[]) - Static method in class princeton.introcs.StdStats
Return maximum value in array, -infinity if no such value.
max(double[], int, int) - Static method in class princeton.introcs.StdStats
Return maximum value in subarray a[lo..hi], -infinity if no such value.
max(int[]) - Static method in class princeton.introcs.StdStats
Return maximum value of array, Integer.MIN_VALUE if no such value
mean(double[]) - Static method in class princeton.introcs.StdStats
Return average value in array, NaN if no such value.
mean(double[], int, int) - Static method in class princeton.introcs.StdStats
Return average value in subarray a[lo..hi], NaN if no such value.
mean(int[]) - Static method in class princeton.introcs.StdStats
Return average value in array, NaN if no such value.
min(double[]) - Static method in class princeton.introcs.StdStats
Return minimum value in array, +infinity if no such value.
min(double[], int, int) - Static method in class princeton.introcs.StdStats
Return minimum value in subarray a[lo..hi], +infinity if no such value.
min(int[]) - Static method in class princeton.introcs.StdStats
Return minimum value of array, Integer.MAX_VALUE if no such value
mouseClicked(MouseEvent) - Method in class princeton.introcs.Draw
This method cannot be called directly.
mouseClicked(MouseEvent) - Method in class princeton.introcs.StdDraw
This method cannot be called directly.
mouseDragged(MouseEvent) - Method in class princeton.introcs.Draw
This method cannot be called directly.
mouseDragged(MouseEvent) - Method in class princeton.introcs.StdDraw
This method cannot be called directly.
mouseEntered(MouseEvent) - Method in class princeton.introcs.Draw
This method cannot be called directly.
mouseEntered(MouseEvent) - Method in class princeton.introcs.StdDraw
This method cannot be called directly.
mouseExited(MouseEvent) - Method in class princeton.introcs.Draw
This method cannot be called directly.
mouseExited(MouseEvent) - Method in class princeton.introcs.StdDraw
This method cannot be called directly.
mouseMoved(MouseEvent) - Method in class princeton.introcs.Draw
This method cannot be called directly.
mouseMoved(MouseEvent) - Method in class princeton.introcs.StdDraw
This method cannot be called directly.
mousePressed() - Method in class princeton.introcs.Draw
Is the mouse being pressed?
mousePressed(MouseEvent) - Method in class princeton.introcs.Draw
This method cannot be called directly.
mousePressed() - Static method in class princeton.introcs.StdDraw
Is the mouse being pressed?
mousePressed(MouseEvent) - Method in class princeton.introcs.StdDraw
This method cannot be called directly.
mouseReleased(MouseEvent) - Method in class princeton.introcs.Draw
This method cannot be called directly.
mouseReleased(MouseEvent) - Method in class princeton.introcs.StdDraw
This method cannot be called directly.
mouseX() - Method in class princeton.introcs.Draw
What is the x-coordinate of the mouse?
mouseX() - Static method in class princeton.introcs.StdDraw
What is the x-coordinate of the mouse?
mouseY() - Method in class princeton.introcs.Draw
What is the y-coordinate of the mouse?
mouseY() - Static method in class princeton.introcs.StdDraw
What is the y-coordinate of the mouse?

N

nextKeyTyped() - Method in class princeton.introcs.Draw
What is the next key that was typed by the user?
nextKeyTyped() - Static method in class princeton.introcs.StdDraw
What is the next key that was typed by the user? This method returns a Unicode character corresponding to the key typed (such as 'a' or 'A').

O

ORANGE - Static variable in class princeton.introcs.Draw
 
ORANGE - Static variable in class princeton.introcs.StdDraw
 
Out - Class in princeton.introcs
This class provides methods for writing strings and numbers to various output streams, including standard output, file, and sockets.
Out(OutputStream) - Constructor for class princeton.introcs.Out
Create an Out object using an OutputStream.
Out() - Constructor for class princeton.introcs.Out
Create an Out object using standard output.
Out(Socket) - Constructor for class princeton.introcs.Out
Create an Out object using a Socket.
Out(String) - Constructor for class princeton.introcs.Out
Create an Out object using a file specified by the given name.

P

pareto(double) - Static method in class princeton.introcs.StdRandom
Return a real number with a Pareto distribution with parameter alpha.
picture(double, double, String) - Method in class princeton.introcs.Draw
Draw picture (gif, jpg, or png) centered on (x, y).
picture(double, double, String, double) - Method in class princeton.introcs.Draw
Draw picture (gif, jpg, or png) centered on (x, y), rotated given number of degrees
picture(double, double, String, double, double) - Method in class princeton.introcs.Draw
Draw picture (gif, jpg, or png) centered on (x, y), rescaled to w-by-h.
picture(double, double, String, double, double, double) - Method in class princeton.introcs.Draw
Draw picture (gif, jpg, or png) centered on (x, y), rotated given number of degrees, rescaled to w-by-h.
Picture - Class in princeton.introcs
This class provides methods for manipulating individual pixels of an image.
Picture(int, int) - Constructor for class princeton.introcs.Picture
Create a blank w-by-h picture, where each pixel is black.
Picture(String) - Constructor for class princeton.introcs.Picture
Create a picture by reading in a .png, .gif, or .jpg from the given filename or URL name.
Picture(File) - Constructor for class princeton.introcs.Picture
Create a picture by reading in a .png, .gif, or .jpg from a File.
picture(double, double, String) - Static method in class princeton.introcs.StdDraw
Draw picture (gif, jpg, or png) centered on (x, y).
picture(double, double, String, double) - Static method in class princeton.introcs.StdDraw
Draw picture (gif, jpg, or png) centered on (x, y), rotated given number of degrees
picture(double, double, String, double, double) - Static method in class princeton.introcs.StdDraw
Draw picture (gif, jpg, or png) centered on (x, y), rescaled to w-by-h.
picture(double, double, String, double, double, double) - Static method in class princeton.introcs.StdDraw
Draw picture (gif, jpg, or png) centered on (x, y), rotated given number of degrees, rescaled to w-by-h.
PINK - Static variable in class princeton.introcs.Draw
 
PINK - Static variable in class princeton.introcs.StdDraw
 
play(double) - Static method in class princeton.introcs.StdAudio
Write one sample (between -1.0 and +1.0) to standard audio.
play(double[]) - Static method in class princeton.introcs.StdAudio
Write an array of samples (between -1.0 and +1.0) to standard audio.
play(String) - Static method in class princeton.introcs.StdAudio
Play a sound file (in .wav or .au format) in a background thread.
plotBars(double[]) - Static method in class princeton.introcs.StdStats
Plot bars from (0, a[i]) to (i, a[i]) to standard draw.
plotLines(double[]) - Static method in class princeton.introcs.StdStats
Plot line segments connecting points (i, a[i]) to standard draw.
plotPoints(double[]) - Static method in class princeton.introcs.StdStats
Plot points (i, a[i]) to standard draw.
point(double, double) - Method in class princeton.introcs.Draw
Draw a point at (x, y).
point(double, double) - Static method in class princeton.introcs.StdDraw
Draw a point at (x, y).
poisson(double) - Static method in class princeton.introcs.StdRandom
Return an integer with a Poisson distribution with mean lambda.
polygon(double[], double[]) - Method in class princeton.introcs.Draw
Draw a polygon with the given (x[i], y[i]) coordinates.
polygon(double[], double[]) - Static method in class princeton.introcs.StdDraw
Draw a polygon with the given (x[i], y[i]) coordinates.
princeton.introcs - package princeton.introcs
 
print() - Method in class princeton.introcs.Out
Flush the output stream.
print(Object) - Method in class princeton.introcs.Out
Print an object and then flush the output stream.
print(boolean) - Method in class princeton.introcs.Out
Print an boolean and then flush the output stream.
print(char) - Method in class princeton.introcs.Out
Print an char and then flush the output stream.
print(double) - Method in class princeton.introcs.Out
Print an double and then flush the output stream.
print(float) - Method in class princeton.introcs.Out
Print a float and then flush the output stream.
print(int) - Method in class princeton.introcs.Out
Print an int and then flush the output stream.
print(long) - Method in class princeton.introcs.Out
Print a long and then flush the output stream.
print(byte) - Method in class princeton.introcs.Out
Print a byte and then flush the output stream.
print(double[]) - Static method in class princeton.introcs.StdArrayIO
Print an array of doubles to standard output.
print(double[][]) - Static method in class princeton.introcs.StdArrayIO
Print the M-by-N array of doubles to standard output.
print(int[]) - Static method in class princeton.introcs.StdArrayIO
Print an array of ints to standard output.
print(int[][]) - Static method in class princeton.introcs.StdArrayIO
Print the M-by-N array of ints to standard output.
print(boolean[]) - Static method in class princeton.introcs.StdArrayIO
Print an array of booleans to standard output.
print(boolean[][]) - Static method in class princeton.introcs.StdArrayIO
Print the M-by-N array of booleans to standard output.
print() - Static method in class princeton.introcs.StdOut
Flush standard output.
print(Object) - Static method in class princeton.introcs.StdOut
Print an Object to standard output and flush standard output.
print(boolean) - Static method in class princeton.introcs.StdOut
Print a boolean to standard output and flush standard output.
print(char) - Static method in class princeton.introcs.StdOut
Print a char to standard output and flush standard output.
print(double) - Static method in class princeton.introcs.StdOut
Print a double to standard output and flush standard output.
print(float) - Static method in class princeton.introcs.StdOut
Print a float to standard output and flush standard output.
print(int) - Static method in class princeton.introcs.StdOut
Print an int to standard output and flush standard output.
print(long) - Static method in class princeton.introcs.StdOut
Print a long to standard output and flush standard output.
print(short) - Static method in class princeton.introcs.StdOut
Print a short to standard output and flush standard output.
print(byte) - Static method in class princeton.introcs.StdOut
Print a byte to standard output and flush standard output.
printf(String, Object...) - Method in class princeton.introcs.Out
Print a formatted string using the specified format string and arguments, and then flush the output stream.
printf(Locale, String, Object...) - Method in class princeton.introcs.Out
Print a formatted string using the specified locale, format string and arguments, and then flush the output stream.
printf(String, Object...) - Static method in class princeton.introcs.StdOut
Print a formatted string to standard output using the specified format string and arguments, and flush standard output.
printf(Locale, String, Object...) - Static method in class princeton.introcs.StdOut
Print a formatted string to standard output using the specified locale, format string, and arguments, and flush standard output.
println() - Method in class princeton.introcs.Out
Terminate the line.
println(Object) - Method in class princeton.introcs.Out
Print an object and then terminate the line.
println(boolean) - Method in class princeton.introcs.Out
Print a boolean and then terminate the line.
println(char) - Method in class princeton.introcs.Out
Print a char and then terminate the line.
println(double) - Method in class princeton.introcs.Out
Print an double and then terminate the line.
println(float) - Method in class princeton.introcs.Out
Print a float and then terminate the line.
println(int) - Method in class princeton.introcs.Out
Print an int and then terminate the line.
println(long) - Method in class princeton.introcs.Out
Print a long and then terminate the line.
println(byte) - Method in class princeton.introcs.Out
Print a byte and then terminate the line.
println() - Static method in class princeton.introcs.StdOut
Terminate the current line by printing the line separator string.
println(Object) - Static method in class princeton.introcs.StdOut
Print an object to standard output and then terminate the line.
println(boolean) - Static method in class princeton.introcs.StdOut
Print a boolean to standard output and then terminate the line.
println(char) - Static method in class princeton.introcs.StdOut
Print a char to standard output and then terminate the line.
println(double) - Static method in class princeton.introcs.StdOut
Print a double to standard output and then terminate the line.
println(float) - Static method in class princeton.introcs.StdOut
Print a float to standard output and then terminate the line.
println(int) - Static method in class princeton.introcs.StdOut
Print an int to standard output and then terminate the line.
println(long) - Static method in class princeton.introcs.StdOut
Print a long to standard output and then terminate the line.
println(short) - Static method in class princeton.introcs.StdOut
Print a short to standard output and then terminate the line.
println(byte) - Static method in class princeton.introcs.StdOut
Print a byte to standard output and then terminate the line.

R

random() - Static method in class princeton.introcs.StdRandom
Return real number uniformly in [0, 1).
read(String) - Static method in class princeton.introcs.StdAudio
Read audio samples from a file (in .wav or .au format) and return them as a double array with values between -1.0 and +1.0.
readAll() - Method in class princeton.introcs.In
Read and return the remainder of the input as a string.
readAll() - Static method in class princeton.introcs.StdIn
Return rest of input from standard input
readBoolean() - Method in class princeton.introcs.BinaryIn
Read the next bit of data from the binary input stream and return as a boolean.
readBoolean() - Static method in class princeton.introcs.BinaryStdIn
Read the next bit of data from standard input and return as a boolean.
readBoolean() - Method in class princeton.introcs.In
Return the next boolean from the input stream, allowing "true" or "1" for true and "false" or "0" for false.
readBoolean() - Static method in class princeton.introcs.StdIn
Return next boolean from standard input, allowing "true" or "1" for true, and "false" or "0" for false
readBoolean1D() - Static method in class princeton.introcs.StdArrayIO
Read in and return an array of booleans from standard input.
readBoolean2D() - Static method in class princeton.introcs.StdArrayIO
Read in and return an M-by-N array of booleans from standard input.
readByte() - Method in class princeton.introcs.BinaryIn
Read the next 8 bits from the binary input stream and return as an 8-bit byte.
readByte() - Static method in class princeton.introcs.BinaryStdIn
Read the next 8 bits from standard input and return as an 8-bit byte.
readByte() - Method in class princeton.introcs.In
Return the next byte from the input stream.
readByte() - Static method in class princeton.introcs.StdIn
Return next byte from standard input
readChar() - Method in class princeton.introcs.BinaryIn
Read the next 8 bits from the binary input stream and return as an 8-bit char.
readChar(int) - Method in class princeton.introcs.BinaryIn
Read the next r bits from the binary input stream and return as an r-bit character.
readChar() - Static method in class princeton.introcs.BinaryStdIn
Read the next 8 bits from standard input and return as an 8-bit char.
readChar(int) - Static method in class princeton.introcs.BinaryStdIn
Read the next r bits from standard input and return as an r-bit character.
readChar() - Method in class princeton.introcs.In
Read and return the next character.
readChar() - Static method in class princeton.introcs.StdIn
Return next char from standard input
readDouble() - Method in class princeton.introcs.BinaryIn
Read the next 64 bits from the binary input stream and return as a 64-bit double.
readDouble() - Static method in class princeton.introcs.BinaryStdIn
Read the next 64 bits from standard input and return as a 64-bit double.
readDouble() - Method in class princeton.introcs.In
Return the next double from the input stream.
readDouble() - Static method in class princeton.introcs.StdIn
Return next double from standard input
readDouble1D() - Static method in class princeton.introcs.StdArrayIO
Read in and return an array of doubles from standard input.
readDouble2D() - Static method in class princeton.introcs.StdArrayIO
Read in and return an M-by-N array of doubles from standard input.
readDoubles(String) - Static method in class princeton.introcs.In
Read doubles from file
readDoubles() - Static method in class princeton.introcs.In
Read doubles from standard input
readDoubles() - Static method in class princeton.introcs.StdIn
Read rest of input as array of doubles
readFloat() - Method in class princeton.introcs.BinaryIn
Read the next 32 bits from standard input and return as a 32-bit float.
readFloat() - Static method in class princeton.introcs.BinaryStdIn
Read the next 32 bits from standard input and return as a 32-bit float.
readFloat() - Method in class princeton.introcs.In
Return the next float from the input stream.
readFloat() - Static method in class princeton.introcs.StdIn
Return next float from standard input
readInt() - Method in class princeton.introcs.BinaryIn
Read the next 32 bits from the binary input stream and return as a 32-bit int.
readInt(int) - Method in class princeton.introcs.BinaryIn
Read the next r bits from the binary input stream return as an r-bit int.
readInt() - Static method in class princeton.introcs.BinaryStdIn
Read the next 32 bits from standard input and return as a 32-bit int.
readInt(int) - Static method in class princeton.introcs.BinaryStdIn
Read the next r bits from standard input and return as an r-bit int.
readInt() - Method in class princeton.introcs.In
Return the next int from the input stream.
readInt() - Static method in class princeton.introcs.StdIn
Return next int from standard input
readInt1D() - Static method in class princeton.introcs.StdArrayIO
Read in and return an array of ints from standard input.
readInt2D() - Static method in class princeton.introcs.StdArrayIO
Read in and return an M-by-N array of ints from standard input.
readInts(String) - Static method in class princeton.introcs.In
Read ints from file
readInts() - Static method in class princeton.introcs.In
Read ints from standard input
readInts() - Static method in class princeton.introcs.StdIn
Read rest of input as array of ints
readLine() - Method in class princeton.introcs.In
Read and return the next line.
readLine() - Static method in class princeton.introcs.StdIn
Return rest of line from standard input
readLong() - Method in class princeton.introcs.BinaryIn
Read the next 64 bits from the binary input stream and return as a 64-bit long.
readLong() - Static method in class princeton.introcs.BinaryStdIn
Read the next 64 bits from standard input and return as a 64-bit long.
readLong() - Method in class princeton.introcs.In
Return the next long from the input stream.
readLong() - Static method in class princeton.introcs.StdIn
Return next long from standard input
readShort() - Method in class princeton.introcs.BinaryIn
Read the next 16 bits from the binary input stream and return as a 16-bit short.
readShort() - Static method in class princeton.introcs.BinaryStdIn
Read the next 16 bits from standard input and return as a 16-bit short.
readShort() - Static method in class princeton.introcs.StdIn
Return next short from standard input
readString() - Method in class princeton.introcs.BinaryIn
Read the remaining bytes of data from the binary input stream and return as a string.
readString() - Static method in class princeton.introcs.BinaryStdIn
Read the remaining bytes of data from standard input and return as a string.
readString() - Method in class princeton.introcs.In
Return the next string from the input stream.
readString() - Static method in class princeton.introcs.StdIn
Return next string from standard input
readStrings(String) - Static method in class princeton.introcs.In
Read strings from a file
readStrings() - Static method in class princeton.introcs.In
Read strings from standard input
readStrings() - Static method in class princeton.introcs.StdIn
Read rest of input as array of strings
rectangle(double, double, double, double) - Method in class princeton.introcs.Draw
Draw a rectangle of given half width and half height, centered on (x, y).
rectangle(double, double, double, double) - Static method in class princeton.introcs.StdDraw
Draw a rectangle of given half width and half height, centered on (x, y).
RED - Static variable in class princeton.introcs.Draw
 
RED - Static variable in class princeton.introcs.StdDraw
 

S

SAMPLE_RATE - Static variable in class princeton.introcs.StdAudio
The sample rate - 44,100 Hz for CD quality audio.
save(String) - Method in class princeton.introcs.Draw
Save to file - suffix must be png, jpg, or gif.
save(String) - Method in class princeton.introcs.Picture
Save the picture to a file in a standard image format.
save(File) - Method in class princeton.introcs.Picture
Save the picture to a file in a standard image format.
save(String, double[]) - Static method in class princeton.introcs.StdAudio
Save the double array as a sound file (using .wav or .au format).
save(String) - Static method in class princeton.introcs.StdDraw
Save to file - suffix must be png, jpg, or gif.
set(int, int, Color) - Method in class princeton.introcs.Picture
Set the color of pixel (i, j) to c.
setCanvasSize(int, int) - Method in class princeton.introcs.Draw
Set the window size to w-by-h pixels.
setCanvasSize() - Static method in class princeton.introcs.StdDraw
Set the window size to the default size 512-by-512 pixels.
setCanvasSize(int, int) - Static method in class princeton.introcs.StdDraw
Set the window size to w-by-h pixels.
setFont() - Method in class princeton.introcs.Draw
Set the font to the default font (sans serif, 16 point).
setFont(Font) - Method in class princeton.introcs.Draw
Set the font to the given value.
setFont() - Static method in class princeton.introcs.StdDraw
Set the font to the default font (sans serif, 16 point).
setFont(Font) - Static method in class princeton.introcs.StdDraw
Set the font to the given value.
setLocationOnScreen(int, int) - Method in class princeton.introcs.Draw
Set the upper-left hand corner of the drawing window to be (x, y), where (0, 0) is upper left.
setOriginLowerLeft() - Method in class princeton.introcs.Picture
Set the origin to be the lower left pixel.
setOriginUpperLeft() - Method in class princeton.introcs.Picture
Set the origin to be the upper left pixel.
setPenColor() - Method in class princeton.introcs.Draw
Set the pen color to the default color (black).
setPenColor(Color) - Method in class princeton.introcs.Draw
Set the pen color to the given color.
setPenColor() - Static method in class princeton.introcs.StdDraw
Set the pen color to the default color (black).
setPenColor(Color) - Static method in class princeton.introcs.StdDraw
Set the pen color to the given color.
setPenRadius() - Method in class princeton.introcs.Draw
Set the pen size to the default (.002).
setPenRadius(double) - Method in class princeton.introcs.Draw
Set the radius of the pen to the given size.
setPenRadius() - Static method in class princeton.introcs.StdDraw
Set the pen size to the default (.002).
setPenRadius(double) - Static method in class princeton.introcs.StdDraw
Set the radius of the pen to the given size.
setScale(double, double) - Static method in class princeton.introcs.StdDraw
Set the x-scale and y-scale (a 10% border is added to the values)
setSeed(long) - Static method in class princeton.introcs.StdRandom
Set the seed of the psedurandom number generator.
setXscale() - Method in class princeton.introcs.Draw
Set the x-scale to be the default (between 0.0 and 1.0).
setXscale(double, double) - Method in class princeton.introcs.Draw
Set the x-scale (a 10% border is added to the values)
setXscale() - Static method in class princeton.introcs.StdDraw
Set the x-scale to be the default (between 0.0 and 1.0).
setXscale(double, double) - Static method in class princeton.introcs.StdDraw
Set the x-scale (a 10% border is added to the values)
setYscale() - Method in class princeton.introcs.Draw
Set the y-scale to be the default (between 0.0 and 1.0).
setYscale(double, double) - Method in class princeton.introcs.Draw
Set the y-scale (a 10% border is added to the values).
setYscale() - Static method in class princeton.introcs.StdDraw
Set the y-scale to be the default (between 0.0 and 1.0).
setYscale(double, double) - Static method in class princeton.introcs.StdDraw
Set the y-scale (a 10% border is added to the values).
show(int) - Method in class princeton.introcs.Draw
Display on screen, pause for t milliseconds, and turn on animation mode: subsequent calls to drawing methods such as line(), circle(), and square() will not be displayed on screen until the next call to show().
show() - Method in class princeton.introcs.Draw
Display on-screen and turn off animation mode: subsequent calls to drawing methods such as line(), circle(), and square() will be displayed on screen when called.
show() - Method in class princeton.introcs.Picture
Display the picture in a window on the screen.
show(int) - Static method in class princeton.introcs.StdDraw
Display on screen, pause for t milliseconds, and turn on animation mode: subsequent calls to drawing methods such as line(), circle(), and square() will not be displayed on screen until the next call to show().
show() - Static method in class princeton.introcs.StdDraw
Display on-screen and turn off animation mode: subsequent calls to drawing methods such as line(), circle(), and square() will be displayed on screen when called.
shuffle(Object[]) - Static method in class princeton.introcs.StdRandom
Rearrange the elements of an array in random order.
shuffle(double[]) - Static method in class princeton.introcs.StdRandom
Rearrange the elements of a double array in random order.
shuffle(int[]) - Static method in class princeton.introcs.StdRandom
Rearrange the elements of an int array in random order.
shuffle(Object[], int, int) - Static method in class princeton.introcs.StdRandom
Rearrange the elements of the subarray a[lo..hi] in random order.
shuffle(double[], int, int) - Static method in class princeton.introcs.StdRandom
Rearrange the elements of the subarray a[lo..hi] in random order.
shuffle(int[], int, int) - Static method in class princeton.introcs.StdRandom
Rearrange the elements of the subarray a[lo..hi] in random order.
square(double, double, double) - Method in class princeton.introcs.Draw
Draw a square of side length 2r, centered on (x, y).
square(double, double, double) - Static method in class princeton.introcs.StdDraw
Draw a square of side length 2r, centered on (x, y).
StdArrayIO - Class in princeton.introcs
Standard array IO.
StdArrayIO() - Constructor for class princeton.introcs.StdArrayIO
 
StdAudio - Class in princeton.introcs
Standard audio.
stddev(double[]) - Static method in class princeton.introcs.StdStats
Return sample standard deviation of array, NaN if no such value.
stddev(double[], int, int) - Static method in class princeton.introcs.StdStats
Return sample standard deviation of subarray a[lo..hi], NaN if no such value.
stddev(int[]) - Static method in class princeton.introcs.StdStats
Return sample standard deviation of array, NaN if no such value.
stddevp(double[]) - Static method in class princeton.introcs.StdStats
Return population standard deviation of array, NaN if no such value.
stddevp(double[], int, int) - Static method in class princeton.introcs.StdStats
Return population standard deviation of subarray a[lo..hi], NaN if no such value.
StdDraw - Class in princeton.introcs
Standard draw.
StdIn - Class in princeton.introcs
Standard input.
StdOut - Class in princeton.introcs
Standard output.
StdRandom - Class in princeton.introcs
Standard random.
StdStats - Class in princeton.introcs
Standard statistics.
Stopwatch - Class in princeton.introcs
Stopwatch.
Stopwatch() - Constructor for class princeton.introcs.Stopwatch
Create a stopwatch object.
sum(double[]) - Static method in class princeton.introcs.StdStats
Return sum of all values in array.
sum(double[], int, int) - Static method in class princeton.introcs.StdStats
Return sum of all values in subarray a[lo..hi].
sum(int[]) - Static method in class princeton.introcs.StdStats
Return sum of all values in array.

T

text(double, double, String) - Method in class princeton.introcs.Draw
Write the given text string in the current font, centered on (x, y).
text(double, double, String, double) - Method in class princeton.introcs.Draw
Write the given text string in the current font, centered on (x, y) and rotated by the specified number of degrees
text(double, double, String) - Static method in class princeton.introcs.StdDraw
Write the given text string in the current font, centered on (x, y).
text(double, double, String, double) - Static method in class princeton.introcs.StdDraw
Write the given text string in the current font, centered on (x, y) and rotated by the specified number of degrees
textLeft(double, double, String) - Method in class princeton.introcs.Draw
Write the given text string in the current font, left-aligned at (x, y).
textLeft(double, double, String) - Static method in class princeton.introcs.StdDraw
Write the given text string in the current font, left-aligned at (x, y).
textRight(double, double, String) - Static method in class princeton.introcs.StdDraw
Write the given text string in the current font, right-aligned at (x, y).

U

uniform() - Static method in class princeton.introcs.StdRandom
Return real number uniformly in [0, 1).
uniform(int) - Static method in class princeton.introcs.StdRandom
Return an integer uniformly between 0 and N-1.
uniform(int, int) - Static method in class princeton.introcs.StdRandom
Return int uniformly in [a, b).
uniform(double, double) - Static method in class princeton.introcs.StdRandom
Return real number uniformly in [a, b).

V

var(double[]) - Static method in class princeton.introcs.StdStats
Return sample variance of array, NaN if no such value.
var(double[], int, int) - Static method in class princeton.introcs.StdStats
Return sample variance of subarray a[lo..hi], NaN if no such value.
var(int[]) - Static method in class princeton.introcs.StdStats
Return sample variance of array, NaN if no such value.
varp(double[]) - Static method in class princeton.introcs.StdStats
Return population variance of array, NaN if no such value.
varp(double[], int, int) - Static method in class princeton.introcs.StdStats
Return population variance of subarray a[lo..hi], NaN if no such value.

W

WHITE - Static variable in class princeton.introcs.Draw
 
WHITE - Static variable in class princeton.introcs.StdDraw
 
width() - Method in class princeton.introcs.Picture
Return the width of the picture in pixels.
write(boolean) - Method in class princeton.introcs.BinaryOut
Write the specified bit to the binary output stream.
write(byte) - Method in class princeton.introcs.BinaryOut
Write the 8-bit byte to the binary output stream.
write(int) - Method in class princeton.introcs.BinaryOut
Write the 32-bit int to the binary output stream.
write(int, int) - Method in class princeton.introcs.BinaryOut
Write the r-bit int to the binary output stream.
write(double) - Method in class princeton.introcs.BinaryOut
Write the 64-bit double to the binary output stream.
write(long) - Method in class princeton.introcs.BinaryOut
Write the 64-bit long to the binary output stream.
write(float) - Method in class princeton.introcs.BinaryOut
Write the 32-bit float to the binary output stream.
write(short) - Method in class princeton.introcs.BinaryOut
Write the 16-bit int to the binary output stream.
write(char) - Method in class princeton.introcs.BinaryOut
Write the 8-bit char to the binary output stream.
write(char, int) - Method in class princeton.introcs.BinaryOut
Write the r-bit char to the binary output stream.
write(String) - Method in class princeton.introcs.BinaryOut
Write the string of 8-bit characters to the binary output stream.
write(String, int) - Method in class princeton.introcs.BinaryOut
Write the String of r-bit characters to the binary output stream.
write(boolean) - Static method in class princeton.introcs.BinaryStdOut
Write the specified bit to standard output.
write(byte) - Static method in class princeton.introcs.BinaryStdOut
Write the 8-bit byte to standard output.
write(int) - Static method in class princeton.introcs.BinaryStdOut
Write the 32-bit int to standard output.
write(int, int) - Static method in class princeton.introcs.BinaryStdOut
Write the r-bit int to standard output.
write(double) - Static method in class princeton.introcs.BinaryStdOut
Write the 64-bit double to standard output.
write(long) - Static method in class princeton.introcs.BinaryStdOut
Write the 64-bit long to standard output.
write(float) - Static method in class princeton.introcs.BinaryStdOut
Write the 32-bit float to standard output.
write(short) - Static method in class princeton.introcs.BinaryStdOut
Write the 16-bit int to standard output.
write(char) - Static method in class princeton.introcs.BinaryStdOut
Write the 8-bit char to standard output.
write(char, int) - Static method in class princeton.introcs.BinaryStdOut
Write the r-bit char to standard output.
write(String) - Static method in class princeton.introcs.BinaryStdOut
Write the string of 8-bit characters to standard output.
write(String, int) - Static method in class princeton.introcs.BinaryStdOut
Write the String of r-bit characters to standard output.

Y

YELLOW - Static variable in class princeton.introcs.Draw
 
YELLOW - Static variable in class princeton.introcs.StdDraw
 
A B C D E F G H I K L M N O P R S T U V W Y