Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package asd.listy;
- /**
- * Interfejs dla różnych implementacji struktury danych jaką jest lista
- * @author Marcin
- * @param <E>
- */
- public interface Lista<E> extends Iterable<E>{
- void dodaj(E e); // Dodanie nowego elementy na koncu listy
- E usun(int i); // Usunięcie i'tego elementu
- void wstaw(int i, E e); // Wstawienie nowego elementu w miejsce i
- int szukaj(E e); //Odnalezienie pierwszego elementu równego e
- E odczytaj(int i); //Odczytanie elementu z pozycji i
- int rozmiar(); //zwrocenie rozmiaru listy
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement