Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public Value remove(Key key) {
- if (key == null) {
- return null;
- }
- Value value = null;
- int removableIndex = this.findIfKeyExist(key);
- if (removableIndex != -1 && table[removableIndex] != null) {
- value = table[removableIndex].value;
- table[removableIndex] = null;
- }
- return value;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement