class Eksempler{ public static void main(String[] args){ final int TALL = 3; int tall = TALL; // Tell ned vanlig while (/* TODO */){ // TODO } // Tell ned rekursivt //TODO // Tell opp rekursivt //TODO } public static int tellNed(int tall){ System.out.println("teller ned: " + tall); vent(1000); return tall - 1; } public static void tellNedRekursivt(int tall){ System.out.println("teller ned rekursivt: " + tall); vent(1000); // TODO } // Hjelpemetode public static void vent(int tid){ try{ Thread.sleep(tid); } catch (InterruptedException e){ System.out.println(e); } } }