public class Oppgave2 { public static void main(String[] args) { Node forste = new Node<>("Hei"); forste.neste = new Node<>("paa"); forste.neste = new Node<>("deg!"); Node iter = forste; while (iter != null) { System.out.println(iter.verdi); iter = iter.neste; } } } class Node { T verdi; Node neste; Node(T v) { verdi = v; } }