Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test {
- public static void main(String[] args) {
- SetInt xx = new SetInt(); // "zainicjowanie" klasy SetInt do zmiennej xx
- System.out.print(" Liczby w zbiorze: " );
- xx.dodaj(0);
- xx.dodaj(7);
- xx.dodaj(7);
- //xx.pokaz();// wszystkimi 10-cioma liczbami
- System.out.println("\n Suma elementow zbioru: "+xx.count());
- xx.sprawdz(7); // podajesz liczbę, którą chcesz sprawdzić czy jest już w tej tablicy
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement