Commit c536b96c authored by Anya Helene Bagge's avatar Anya Helene Bagge 🦆

Sett alle elementer til null når vi clearer stack

parent 356d0f46
......@@ -49,6 +49,8 @@ public class MyStack implements IStack {
@Override
public void clear() {
for(int i = 0; data.length; i++)
data[i] = null;
length = 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment