Let\'s say I have this:
PrintStream out = System.out; Scanner in = new Scanner(System.in); out.print(\"Enter a number ... \"); int n = in.nextInt();
This will add 3 years to the current date and print the year.
System.out.println(LocalDate.now().plusYears(3).getYear());