W IntelliJ ten program działa, o co chodzi?
package pl.codegym.task.task03.task0319;
/*
Prognozy
*/
import java.util.Scanner;
public class Solution {
Scanner scanner = new Scanner(System.in);
String sentence = new String(scanner.nextLine());
String sentence1 = new String(scanner.nextLine());
String sentence2 = new String(scanner.nextLine());
System.out.println(sentence +" dostanie "+ sentence1 +" za " + sentence2 +" lat.");
}
}