The output is correct, not sure why this is not passing the last condition. Any help???
package com.codegym.task.task03.task0319;
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner in = new Scanner(System.in);
// userChoice = in.nextLine();
String name;
int number1;
int number2;
System.out.println("What is your name?");
name = in.nextLine();
System.out.println("How much money do you save per year?");
number1 = in.nextInt();
System.out.println("How long will you save money?");
number2 = in.nextInt();
System.out.println(name + " will receive " + number1 + " in " + number2 + " years.");
}
}