class Hovedprogram { public static void main(String[] args) { //Generiske klasser Bolig bolig = new Bolig(); Kanin kanin = new Kanin(); bolig.settInn(kanin); System.out.println(bolig.antallInnbyggere()); //Lenkeliste Node en = new Node("Christine "); Node to = new Node("Er "); Node tre = new Node("Kjempekul"); Node start = en; en.settNeste(to); to.settNeste(tre); Node akkuratNaa = start; while (akkuratNaa != null) { System.out.println(akkuratNaa.hentData()); akkuratNaa = akkuratNaa.hentNeste(); } } }