můj kod zatím vypadá takto -
import java.io.PrintStream;
import java.util.Scanner;
public class scanner
{
public scanner()
{
}
public static void main(String args[])
{
Scanner in = new Scanner(System.in);
System.out.println("Please, insert code");
String retezec = in.nextLine();
System.out.println(new StringBuilder("User write: " + retezec));
System.out.println("Access Denied!");
System.out.println("Please, insert code");
String urcite = in.nextLine();
System.out.println(new StringBuilder("User write: " + urcite));
System.out.println("Access Denied!");
System.out.println("Please, insert code");
String ahoj = in.nextLine();
System.out.println(new StringBuilder("User write: " + ahoj));
System.out.println("Access Denied!");
System.out.println("3 bad passwords! shuting down!");
System.exit(0);
}
}