From b0324289066876915efb84a133eca039d8e8c8ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sun, 17 Dec 2023 23:17:03 +0100 Subject: =?UTF-8?q?=C5=A1ola?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "\305\241ola/p1/dn/7/Oseba.java" | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 "\305\241ola/p1/dn/7/Oseba.java" (limited to 'šola/p1/dn/7/Oseba.java') diff --git "a/\305\241ola/p1/dn/7/Oseba.java" "b/\305\241ola/p1/dn/7/Oseba.java" new file mode 100644 index 0000000..2477ee9 --- /dev/null +++ "b/\305\241ola/p1/dn/7/Oseba.java" @@ -0,0 +1,17 @@ +import java.util.*; +public class Oseba { + private String ip; + public char spol; + public int starost; + public Oseba(String ip, char spol, int starost) { + this.ip = ip; + this.spol = spol; + this.starost = starost; + } + public String toString() { + return String.format("%s, %c, %d", this.ip, this.spol, this.starost); + } + public boolean jeStarejsaOd(Oseba os) { + return this.starost > os.starost; + } +} -- cgit v1.2.3