summaryrefslogtreecommitdiffstats
path: root/šola/p1/dn/7/Test.java
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--šola/p1/dn/7/Test.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/šola/p1/dn/7/Test.java b/šola/p1/dn/7/Test.java
new file mode 100644
index 0000000..179cf75
--- /dev/null
+++ b/šola/p1/dn/7/Test.java
@@ -0,0 +1,12 @@
+public class Test {
+ public static void main (String[] args) {
+ Oseba os[] = { new Oseba("anton luka", 'm', 12), new Oseba("bla ck", 'z', 11) };
+ Oseba os2[] = { new Oseba("anton luka", 'm', 55), new Oseba("bla ck", 'z', 66) };
+ Stanovanje st = new Stanovanje(os);
+ Stanovanje st2 = new Stanovanje(os2);
+ st.nastaviSosede(st2, null, null, null);
+ st2.nastaviSosede(null, null, st, null);
+ for (Oseba sosed : st.sosedjeSosedov())
+ System.out.println(sosed.toString());
+ }
+}