class Main{ public static void main(String[] args) { Node start = new Node(new Kanon()); Node nrTo = new Node(new Kanon()); start.settNeste(nrTo); nrTo.settNeste(new Node(new Kanon())); Node n = start; while(n != null){ System.out.println(n); n = n.hentNeste(); } } }