import java.util.ArrayList; import java.util.Scanner; import java.util.ArrayList; import java.util.List; import java.util.HashMap; import java.util.Map; public class Hovedprogram { public static void main(String[] args){ int a = 3; double b = 3.3; String c = "Hei"; // String char x = 'd'; //char int[] d = {1, 2, 3}; List e = new ArrayList<>(); e.add(a); e.add(b); e.add(c); Map f =new HashMap<>(); f.put("a", 3); f.put("b", 4); for (int i = 0; i < 10; i++){ System.out.println("Tallet er " + i ); } for (int j : d ){ System.out.println(j); } while (a < 4){ System.out.println(a); a++; } Scanner s = new Scanner(System.in); String inp = s.nextLine(); int inp_inp = Integer.parseInt(inp); double double_inp = Double.parseDouble(inp); } } class A{ private String instansvar1; private int instansvar2; public A (String arg1, int arg2){ instansvar1 = arg1; instansvar2 = arg2; } public String foo(String bar) { return bar; } }