// Wildcard type for parameter that serves as an E consumer - it consumes from the Stack to external collection
public void popAll(Collection<...> dst) {
while (!isEmpty())
dst.add(pop());
}
what kind of bounded wildcard do we need here for Collection (consumer)?
// Wildcard type for parameter that serves as an E consumer - it consumes from the Stack to external collection
public void popAll(Collection<...> dst) {
while (!isEmpty())
dst.add(pop());
}
what kind of bounded wildcard do we need here for Collection (consumer)?
// Wildcard type for parameter that serves as an E consumer - it consumes from the Stack to external collection
public void popAll(Collection<...> dst) {
while (!isEmpty())
dst.add(pop());
}
what kind of bounded wildcard do we need here for Collection (consumer)?status | not learned | measured difficulty | 37% [default] | last interval [days] | |||
---|---|---|---|---|---|---|---|
repetition number in this series | 0 | memorised on | scheduled repetition | ||||
scheduled repetition interval | last repetition or drill |