mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-08 18:32:56 +08:00
Add tests for NodeStack (#6009)
This commit is contained in:
@ -95,15 +95,4 @@ public class NodeStack<Item> {
|
||||
public int size() {
|
||||
return size;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints the contents of the stack from top to bottom.
|
||||
*/
|
||||
public void print() {
|
||||
Node current = head;
|
||||
while (current != null) {
|
||||
System.out.println(current.data);
|
||||
current = current.previous;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user