Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void remove(String key) throws MapException {
- // TODO Auto-generated method stub
- for(int i = 0; i <List.length;i++){
- if(List[i] !=null && List[i].equals(key)){
- List[i] = null;
- numberOfElements--;
- }else{
- throw new MapException("Nothing here", null);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement