package com.javarush.task.task04.task0443;
import java.util.Scanner;
/*
Как назвали, так назвали
*/
public class Solution {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
String name = sc.nextLine();
int year = sc.nextInt();
int mouth = sc.nextInt();
int date = sc.nextInt();
String a = ".";
System.out.println("Меня зовут"+ " " + name +a);
System.out.println("Я родиля"+ " " + date + a + mouth + a + year );
}
}
В чем подвох задачи и что я упускаю? Вроде перечитал решения других, но таких же ошибок не нашел.package com.javarush.task.task04.task0443;
import java.util.Scanner;
/*
Как назвали, так назвали
*/
public class Solution {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
String name = sc.nextLine();
int year = sc.nextInt();
int mouth = sc.nextInt();
int date = sc.nextInt();
String a = ".";
System.out.println("Меня зовут"+ " " + name +a);
System.out.println("Я родиля"+ " " + date + a + mouth + a + year );
}
}