import javax.swing.plaf.synth.SynthSplitPaneUI; import java.util.ArrayList; public class TestLister { public static void main(String[] args) { StartSluttLenkeliste FIFO = new StartSluttLenkeliste(); // Sjekk på en tom liste, gir egen exception hvis tom try { System.out.println(FIFO.taUt()); } catch (TomListeException e) { System.out.println(e.getMessage()); } // Sett inn 10 elementer for (int i = 0; i < 10; i++) { FIFO.settInn("A" + i); } // Bruk iterator til å løpe gjennom for (String el : FIFO) { System.out.println(el); } } }