Guest User

Untitled

a guest
May 24th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public class PusteBST<T extends Comparable<T>> extends BST<T> {
  2.  
  3. public static PusteBST<?> puste = new PusteBST();
  4.  
  5. public static <K extends Comparable<K>> BST<K> createPuste(){
  6. return (BST<K>) puste;
  7. }
  8.  
  9. private PusteBST(){
  10.  
  11. }
  12.  
  13. @Override
  14. public BST<T> dodaj(T w){
  15. return new BST<T>(w);
  16. }
  17.  
  18. @Override
  19. public boolean exists(T w){
  20. return false;
  21. }
  22. }
Add Comment
Please, Sign In to add comment