Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1.     public void createBasket(String id) throws BasketExistenceException{
  2.        
  3.         if(baskets.containsKey(id))
  4.             throw new BasketExistenceException();
  5.  
  6.         baskets.put(id, new Basket(id));
  7.        
  8.     }
  9.  
  10.         public IBasket getBasket(String id) {
  11.         return (IBasket) baskets.get(id);
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement