import java.util.Scanner; class While{ public static void main(String[] args) { Scanner myScanner = new Scanner(System.in); String inp = myScanner.nextLine(); while( ! inp.equals("Kari") ){ System.out.println("Feil"); inp = myScanner.nextLine(); } System.out.println("Riktig"); } }