
public class Studienberatung {
	public static void main(String[] args) {

	}
}

import java.util.Scanner;

public class Studienberatung {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String antwort = "";
		
		System.out.println("Hast du Abitur[j/n]?");
		antwort = scanner.next();
}

initialize scanner an sysout: 'hast du abitur'