blob: 2477ee99aa0e17b8137c1d5458da57ace09d16fc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
}
}
|