Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
G
H
I
L
M
N
P
R
S
T
A
affirmative(String)
- Static method in class
IO
Tests if a string value begins with 'y' or 'Y'
B
BinaryTree
- Class in
<Unnamed>
BinaryTree class done by the professor.
BinaryTree()
- Constructor for class
BinaryTree
BinaryTree(Comparable)
- Constructor for class
BinaryTree
BinaryTree(Comparable, BinaryTree, BinaryTree)
- Constructor for class
BinaryTree
C
currentQ
- Variable in class
Game
Mutable Binary Trees that keep track of the current and previous pointers
G
Game
- Class in
<Unnamed>
Game()
- Constructor for class
Game
a constructor that allows the main method to reach other methods without making them static
H
head
- Variable in class
TreeMaker
MutableBinaryTree that keeps track of the entire tree by pointing to its head
I
insert(BinaryTree)
- Method in class
BinaryTree
insertDestructive(BinaryTree)
- Method in class
BinaryTree
IO
- Class in
<Unnamed>
Utility class for basic IO functions.
isEmpty()
- Method in class
BinaryTree
isEmpty()
- Method in class
MutableBinaryTree
L
left
- Variable in class
BinaryTree
left()
- Method in class
BinaryTree
left()
- Method in class
MutableBinaryTree
M
main(String[])
- Static method in class
Game
main method that starts the game according to user input and interacts with TreeMaker to get the binary tree and write it back once the game is over.
MutableBinaryTree
- Class in
<Unnamed>
MutableBinaryTree class that extends BinaryTree to make the toString methods reusable and to make a parse method to make a mutableBinaryTree out of a mutable binary tree in form of a string.
MutableBinaryTree()
- Constructor for class
MutableBinaryTree
MutableBinaryTree(Comparable)
- Constructor for class
MutableBinaryTree
MutableBinaryTree(Comparable, MutableBinaryTree, MutableBinaryTree)
- Constructor for class
MutableBinaryTree
N
NIL
- Static variable in class
BinaryTree
nil()
- Method in class
BinaryTree
NIL
- Static variable in class
MutableBinaryTree
P
parseBinaryTreeInts(String)
- Static method in class
BinaryTree
parseMutableBinaryTreeString(String)
- Static method in class
MutableBinaryTree
Public method to convert a string to a mutable binary tree
previousQ
- Variable in class
Game
Mutable Binary Trees that keep track of the current and previous pointers
prompt(String)
- Static method in class
IO
Gets prompted input as a string from the user via stdin
promptInt(String, int, int)
- Static method in class
IO
Gets prompted input parsed as an int within the specified range from the user via stdin
R
readFile(String)
- Static method in class
IO
Reads an entire file into a single string
right
- Variable in class
BinaryTree
right()
- Method in class
BinaryTree
right()
- Method in class
MutableBinaryTree
root
- Variable in class
BinaryTree
root()
- Method in class
BinaryTree
S
saveToFile()
- Method in class
TreeMaker
it saves the changes back to the original file
setData(Comparable)
- Method in class
BinaryTree
setLeft(BinaryTree)
- Method in class
BinaryTree
setRight(BinaryTree)
- Method in class
BinaryTree
stderr
- Static variable in class
IO
A PrintStream associated with stderr
stdin
- Static variable in class
IO
A BufferedReader associated with the stdin stream
stdout
- Static variable in class
IO
A PrintStream associated with stdout
T
toString()
- Method in class
BinaryTree
toString(String)
- Method in class
BinaryTree
toString()
- Method in class
MutableBinaryTree
TreeMaker
- Class in
<Unnamed>
TreeMaker()
- Constructor for class
TreeMaker
constructor methods to initiate the game by getting the file input and transforming it to a mutable binary tree
TreeMaker(String)
- Constructor for class
TreeMaker
A
B
C
G
H
I
L
M
N
P
R
S
T
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes