Show Menu
Cheatography

Java Unit4 Cheat Sheet by

For Java students in the Unit4 program

Node<T>

Node(T info)
:: Constr­uctor
Node(T info, Node<T> next)
:: Constr­uctor
getInfo()
:: T
getNext()
:: Node<T>
setInfo(T info)
:: void
setNex­t(N­ode­<T> next)
:: void
toString()
:: String

Stack<­T>

Stack()
:: Constr­uctor
push(T x)
:: void
pop()
:: T
top()
:: T
isEmpty()
:: Boolean
toString()
:: String

BinTre­eNo­de<­T>

BinTre­eNode(T info)
:: Constr­uctor
BinTre­eNo­de(­Bin­Tre­eNo­de<­T> left, T info, BinTre­eNo­de<­T> right)
:: Constr­uctor
getInfo()
:: T
getLeft()
BinTre­eNo­de<­T>
getRight()
BinTre­eNo­de<­T>
setInfo()
:: void
setLef­t(B­inT­ree­Nod­e<T> left)
:: void
setRig­ht(­Bin­Tre­eNo­de<­T> right)
:: void
toString()
:: String
 

List<T>

List()
:: Constr­uctor
getFirst()
:: Node<T>
insert­(No­de<­T>, T info)
:: Node<T>
remove­(No­de<­T> p)
:: Node<T>
isEmpty()
:: Boolean
toString()
:: String

Queue<­T>

Queue()
:: Constr­uctor
insert(T x)
:: void
remove()
:: T
head()
:: T
isEmpty()
:: Boolean
toString()
:: String
   
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Selenium WebDriver Cheat Sheet Cheat Sheet
          ISTQB Test Automation Engineering Cheat Sheet
          Cypressio Cheat Sheet