package en.javarush.task.jdk13.task03.task0319;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Predictions
*/
public class Solution {
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in);
String name = scanner.nextLine();
String number1 = scanner.nextLine();
String number2 = scanner.nextLine();
System.out.println(name + " will receive " + number1 + "in" + number2 + "years");
}
}
Albert
Level 3
Why example 2 works but example 3 doesnt?
Resolved
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
kolizey72
17 April 2022, 13:01useful
You should use following method to avoid errors
And add more spaces where needed in output message (UPD: and dot) +1