MCPcopy
hub / github.com/careercup/ctci / add

Method add

java/Chapter 3/Question3_5/MyQueue.java:17–20  ·  view source on GitHub ↗
(T value)

Source from the content-addressed store, hash-verified

15 }
16
17 public void add(T value) {
18 // Push onto stack1
19 stackNewest.push(value);
20 }
21
22 /* Move elements from stackNewest into stackOldest. This is usually done so that we can
23 * do operations on stackOldest.

Callers 1

mainMethod · 0.95

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected