Advertisement
Guest User

lista.java

a guest
Oct 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package asd.listy;
  7.  
  8. /**
  9.  * Interfejs dla różnych implementacji struktury danych jaką jest lista
  10.  * @author Marcin
  11.  * @param <E>
  12.  */
  13. public interface Lista<E> extends Iterable<E>{
  14.  
  15.     void dodaj(E e); // Dodanie nowego elementy na koncu listy
  16.  
  17.     E usun(int i); // Usunięcie i'tego elementu
  18.  
  19.     void wstaw(int i, E e); // Wstawienie nowego elementu w miejsce i
  20.  
  21.     int szukaj(E e); //Odnalezienie pierwszego elementu równego e
  22.  
  23.     E odczytaj(int i); //Odczytanie elementu z pozycji i
  24.  
  25.     int rozmiar(); //zwrocenie rozmiaru listy    
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement