A C D E F G M P R S T W

A

advance(int) - Method in class corejava.Day
Advances this day by n days.
Assertion - class corejava.Assertion.
A class for assertion checking
Assertion.Failure - exception corejava.Assertion.Failure.
A class for reporting assertion failures
Assertion.Failure() - Constructor for class corejava.Assertion.Failure
 
Assertion.Failure(String) - Constructor for class corejava.Assertion.Failure
 
Assertion() - Constructor for class corejava.Assertion
 
atof(String) - Static method in class corejava.Format
Converts a string of digits to a double
atoi(String) - Static method in class corejava.Format
Converts a string of digits (decimal, octal or hex) to an integer
atol(String) - Static method in class corejava.Format
Converts a string of digits (decimal, octal or hex) to a long integer

C

check(boolean) - Static method in class corejava.Assertion
Check an assertion
check(boolean, String) - Static method in class corejava.Assertion
Check an assertion
check(double) - Static method in class corejava.Assertion
Check an assertion
check(double, String) - Static method in class corejava.Assertion
Check an assertion
check(long) - Static method in class corejava.Assertion
Check an assertion
check(long, String) - Static method in class corejava.Assertion
Check an assertion
check(Object) - Static method in class corejava.Assertion
Check an assertion
check(Object, String) - Static method in class corejava.Assertion
Check an assertion
clone() - Method in class corejava.Day
Makes a bitwise copy of a Day object
Console - class corejava.Console.
An easy interface to read numbers and strings from standard input
Console() - Constructor for class corejava.Console
 

D

Day - class corejava.Day.
Stores dates and perform date arithmetic.
Day() - Constructor for class corejava.Day
Constructs today's date
Day(int, int, int) - Constructor for class corejava.Day
Constructs a specific date
daysBetween(Day) - Method in class corejava.Day
The number of days between this and day parameter
draw() - Method in class corejava.RandomIntGenerator
Generates a random integer in a range of integers

E

equals(Object) - Method in class corejava.Day
Compares this Day against another object

F

Format - class corejava.Format.
A class for formatting numbers that follows printf conventions.
format(char) - Method in class corejava.Format
Formats a character into a string (like sprintf in C)
format(double) - Method in class corejava.Format
Formats a double into a string (like sprintf in C)
format(int) - Method in class corejava.Format
Formats an integer into a string (like sprintf in C)
format(long) - Method in class corejava.Format
Formats a long integer into a string (like sprintf in C)
format(String) - Method in class corejava.Format
Formats a string into a larger string (like sprintf in C)
Format(String) - Constructor for class corejava.Format
Formats the number following printf conventions.
FRIDAY - Static variable in class corejava.Day
 

G

getDay() - Method in class corejava.Day
Gets the day of the month
getMonth() - Method in class corejava.Day
Gets the month
getYear() - Method in class corejava.Day
Gets the year

M

main(String[]) - Static method in class corejava.Assertion
test stub
main(String[]) - Static method in class corejava.Format
a test stub for the format class
main(String[]) - Static method in class corejava.RandomIntGenerator
test stub for the class
MONDAY - Static variable in class corejava.Day
 

P

printf(String, char) - Static method in class corejava.Format
prints a formatted number following printf conventions
printf(String, double) - Static method in class corejava.Format
prints a formatted number following printf conventions
printf(String, int) - Static method in class corejava.Format
prints a formatted number following printf conventions
printf(String, long) - Static method in class corejava.Format
prints a formatted number following printf conventions
printf(String, String) - Static method in class corejava.Format
prints a formatted number following printf conventions
printPrompt(String) - Static method in class corejava.Console
print a prompt on the console but don't print a newline

R

RandomIntGenerator - class corejava.RandomIntGenerator.
An improved random number generator based on Algorithm B in Knuth Vol 2 p32.
RandomIntGenerator(int, int) - Constructor for class corejava.RandomIntGenerator
Constructs an object that generates random integers in a given range
readDouble(String) - Static method in class corejava.Console
read a floating point number from the console.
readInt(String) - Static method in class corejava.Console
read an integer from the console.
readLine() - Static method in class corejava.Console
read a string from the console.
readLine(String) - Static method in class corejava.Console
read a string from the console.

S

SATURDAY - Static variable in class corejava.Day
 
setCheck(boolean) - Static method in class corejava.Assertion
Turn checking on or off
SUNDAY - Static variable in class corejava.Day
 

T

THURSDAY - Static variable in class corejava.Day
 
toString() - Method in class corejava.Day
A string representation of the day
TUESDAY - Static variable in class corejava.Day
 

W

WEDNESDAY - Static variable in class corejava.Day
 
weekday() - Method in class corejava.Day
Gets the weekday

A C D E F G M P R S T W