G2A Many GEOs
SHARE
TWEET

Glavna.java

a guest Apr 6th, 2020 173 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Glavna {
  2.  
  3.     public static void main(String[] args) {
  4.         Fabrika Atex=new Fabrika();
  5.         Traka t1=new traka_lizalice(123, 1, 50, "Endrju");
  6.         Traka t2=new traka_smoki(456, 2, 70, "Tedi");
  7.         Traka t3=new traka_cokolade(789, 3, 2500, "Rejcel");
  8.         Atex.dodaj(t1);
  9.         Atex.dodaj(t2);
  10.         Atex.dodaj(t3);
  11.         Atex.pokrenuti(0, 100);  //drugi argument je kolicina materijala sa kojom se pokrece traka
  12.         Atex.pokrenuti(1, 100);
  13.         Atex.pokrenuti(2, 100);
  14.         Atex.UpisUFajl("fabrika.txt");
  15.         Fabrika Atex2 = new Fabrika ();
  16.         Atex2.ProcitajIzFajla("fabrika.txt");
  17.         Atex2.stampaj();
  18.     }
  19.  
  20. }
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top