Ledger Nano X - The secure hardware wallet
SHARE
TWEET

traka_smoki.java

a guest Apr 6th, 2020 245 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class traka_smoki extends Traka {
  2.  
  3.     public traka_smoki(int _sifra, int _sprat, int _kapacitet, String _ime_servisera) {
  4.         super(_sifra, _sprat, _kapacitet, _ime_servisera);
  5.         tip=1;
  6.     }
  7.  
  8.     @Override
  9.     public int aktivirati(int kolicina_materijala) throws MaximumCapacityExceeded {
  10.        
  11.         if(kolicina_materijala*500> this.kapacitet)
  12.             throw new MaximumCapacityExceeded("Prekoracen je kapacitet! Ime servisera: "+ime_servisera);
  13.         aktivnost=true;
  14.         System.out.println("Proizvedeno je: "+ kapacitet*500+" kesica smokija.");
  15.         return kapacitet;
  16.     }
  17. }
RAW Paste Data
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