For to be able to enter data in the IDE Eclipse console, write these lines, otherwise compiler ignore you


Scanner scanner = new Scanner(System.in);
input = Integer.parseInt(scanner.nextLine());

Now you’ll be able to enter green symbols in the Eclipse console and the program will be waiting for the Enter key