Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. public class Test {
  2.  
  3.    
  4.     public static void main(String[] args) {
  5.      
  6.         SetInt xx = new SetInt();    // "zainicjowanie" klasy SetInt do zmiennej xx
  7.         System.out.print(" Liczby w  zbiorze: " );
  8.          xx.dodaj(0);
  9.          xx.dodaj(7);
  10.          xx.dodaj(7);    
  11.    
  12.         //xx.pokaz();// wszystkimi 10-cioma liczbami
  13.    
  14.         System.out.println("\n Suma elementow zbioru: "+xx.count());
  15.         xx.sprawdz(7);   // podajesz liczbę, którą chcesz sprawdzić czy jest już w tej tablicy
  16.            
  17.        
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement