Hey,
Can you help me with that task I am struggeling with it.
Basti
package de.codegym.task.task03.task0319;
/*
Vorhersagen
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//schreib hier deinen Code
Scanner scanner = new Scanner(System.in);
String name = scanner.nextLine();
int Zahl1 = scanner.nextInt();
int Zahl2 = scanner.nextInt();
System.out.println(name+" wird "+Zahl1+" in "+Zahl2+" Jahren erhalten.");
sc.close();
}
}