- 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?
- 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.
- 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
-
- 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.
- 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.