Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pernica;
- public class Test {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- Bojica b=new Bojica("1",100,"Crvena","Drvena");
- Bojica b1=new Bojica("2",200,"Plava","Drvena");
- Bojica b2=new Bojica("3",300,"Zelen","Drvena");
- Bojica b3=new Bojica("4",400,"Roza","Drvena");
- Bojica b5=new Bojica("5",400,"Roza","Drvena");
- Bojica b6=new Bojica("6",400,"Roza","Drvena");
- Bojica b4=new Bojica(b);
- System.out.println("Cena b");
- System.out.println(b.getCena());
- System.out.println("Serijski broj b");
- System.out.println(b.getSerijski_broj());
- b.akcijskaCena(10);
- b1.akcijskaCena(10);
- b2.akcijskaCena(10);
- b3.akcijskaCena(10);
- b4.akcijskaCena(10);
- System.out.println(b);
- System.out.println(b1);
- System.out.println(b2);
- System.out.println(b3);
- System.out.println(b4);
- Pernica p=new Pernica();
- p.dodaj(b4);
- p.dodaj(b1);
- p.dodaj(b3);
- p.dodaj(b2);
- p.dodaj(b5);
- p.dodaj(b6);
- System.out.println("Broj boijca sa cenom vecom od 150"+" "+p.prebroj(150));
- System.out.println(p);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement