summaryrefslogblamecommitdiffstats
path: root/šola/p1/dn/7/Test.java
blob: 179cf75206daa2e4ce87c631a0a5023298a5dc02 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
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());
	}
}