Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PusteBST<T extends Comparable<T>> extends BST<T> {
- public static PusteBST<?> puste = new PusteBST();
- public static <K extends Comparable<K>> BST<K> createPuste(){
- return (BST<K>) puste;
- }
- private PusteBST(){
- }
- @Override
- public BST<T> dodaj(T w){
- return new BST<T>(w);
- }
- @Override
- public boolean exists(T w){
- return false;
- }
- }
Add Comment
Please, Sign In to add comment