diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2024-01-13 00:16:45 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2024-01-13 00:16:45 +0100 |
commit | 9cd608be2cbb9fe5cb414e84311622d66e3b964c (patch) | |
tree | 4d7655f5a240cec4fe491e367eba2e154b0b7c4f /šola/p1/dn | |
parent | sear.phop (diff) | |
download | r-9cd608be2cbb9fe5cb414e84311622d66e3b964c.tar r-9cd608be2cbb9fe5cb414e84311622d66e3b964c.tar.gz r-9cd608be2cbb9fe5cb414e84311622d66e3b964c.tar.bz2 r-9cd608be2cbb9fe5cb414e84311622d66e3b964c.tar.lz r-9cd608be2cbb9fe5cb414e84311622d66e3b964c.tar.xz r-9cd608be2cbb9fe5cb414e84311622d66e3b964c.tar.zst r-9cd608be2cbb9fe5cb414e84311622d66e3b964c.zip |
Diffstat (limited to 'šola/p1/dn')
-rw-r--r-- | šola/p1/dn/9/ZivalImplementacija.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/šola/p1/dn/9/ZivalImplementacija.java b/šola/p1/dn/9/ZivalImplementacija.java deleted file mode 100644 index c5ba81e..0000000 --- a/šola/p1/dn/9/ZivalImplementacija.java +++ /dev/null @@ -1,21 +0,0 @@ -// unused -import java.util.*; -public class ZivalImplementacija { - int hranjenj; - List<ZivalImplementacija> implementacije; - public void dodajImplementacijo (ZivalImplementacija z) { - if (implementacije == null) - implementacije = new ArrayList<ZivalImplementacija>(); - implementacije.add(z); - } - public void seHrani () { - this.hranjenj++; - } - public int steviloHranjenj () { - int r = hranjenj; - if (implementacije != null) - for (ZivalImplementacija i : implementacije) - r += i.steviloHranjenj(); - return r; - } -} |