import java.util.Scanner; class Hoved { public static void main(String[] args) { System.out.println("hei"); int tall = 5; String tekst = "tekst"; double desimal = 5.5; boolean bool = true; System.out.println(tall); Scanner sc = new Scanner(System.in); System.out.println("Skriv noe da: "); String svar = sc.nextLine(); System.out.println(svar); int[] liste = new int[10]; int[] liste2 = {1, 2, 4, 5, 6, 7, 8}; liste[0] = 1; liste[5] = 2; System.out.println(liste[0]); String[] tekstListe = new String[5]; System.out.println("\nWhile-l?kke"); int i = 0; while (i < 5) { System.out.println(i); i++; } int a = 0; for (int k = 0; k < 5; k++) { System.out.println(k); a = 5; } System.out.println(a); Klasse objekt1 = new Klasse(5); System.out.println(objekt1.statiskVar); System.out.println(Klasse.statiskVar); Klasse.statiskMetode(); } }