public class SparegrisProgram { public static void main(String[] args) { SparegrisGenerisk s = new SparegrisGenerisk<>(); s.leggTilFoerst(100); s.leggTilFoerst(30); s.leggTilFoerst(600); s.leggTilFoerst(490); s.leggTilFoerst(6); s.leggTilFoerst(45); s.leggTilFoerst(201); for (int i : s) { System.out.println(i); } System.out.println("St?rst: " + s.finnSt?rst()); SparegrisGenerisk s2 = new SparegrisGenerisk<>(); s2.leggTilSist("Dette"); s2.leggTilSist("Er"); s2.leggTilSist("En"); s2.leggTilSist("Lenkeliste"); s2.leggTilSist("Med"); s2.leggTilSist("Strenger"); for (String string : s2) { System.out.println(string); } System.out.println("St?rst: " + s2.finnSt?rst()); } }