A name is a name

  • 2
  • Locked
At the age of 80, Yurgona Dye fulfilled his dream and learned to program. But he encountered two problems: first, nobody would hire him as a junior developer because of his age; and second, people were afraid to associate with him because of his name. But Yurgona is now a programmer. He can write a method that will assign him any name and birth year. Can you?
You can't complete this task, because you're not signed in.
Comments(13)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
benLevel 8 , Basingstoke
1 March, 17:52
so why does this fail "The program should display text in accordance with the template specified in the task" criteria?
import java.util.Scanner;

public class Solution {
    public static void main(String[] args) throws Exception {
        //write your code here
        Scanner scan = new Scanner(System.in);
        String name = scan.nextLine();
        int birthYear = scan.nextInt();
        int birthMonth = scan.nextInt();
        int birthDay = scan.nextInt();


        System.out.println("My name is " + name.substring(0, 1).toUpperCase() + name.substring(1) + ".");
        System.out.println("I was born on " + birthMonth + "/" + birthDay + "/" + birthYear);
    }
}
Manish SinhaLevel 14 , london
12 March, 14:22
have you solved this task? you are already on level 8 . great work .
stambulLevel 11
4 October 2019, 13:15
five attempts because I entered "\" and not "/".
AbuLevel 15 , Irving
11 September 2019, 15:26
Be careful of "." (fullstop) after the name
K SHAKTHI DHAR REDDYLevel 5 , Chennai
3 July 2019, 10:24
can someone pls help
K SHAKTHI DHAR REDDYLevel 5 , Chennai
3 July 2019, 10:24
I don't understand whats wrong in this typing
Narra Geetha Level 5 , Hyderabad
8 June 2019, 15:04
can anyone please help me with typo error
ZserboLevel 16 , Budapest
8 June 2019, 15:50
There is a dot at the end of the first line. That was my struggle
megha priyaLevel 9 , Delhi
4 June 2019, 05:33
I a not resolve the typo error.
Jerzy RojekLevel 11 , Katowice
31 May 2019, 11:20
Oh you Americans and your illogical date format
briLevel 7 , Sevilla
2 February 2019, 18:50
FREAKING PERIOD. only exasperating hint I'll give.
senthamil selvanLevel 20 , Eral
10 January 2019, 04:48
TASK 0443 PLS HELP ANYBODY
RomanLevel 41
10 January 2019, 06:38
If you need help, something isn't right in your code, the server won't accept your solution (even if you are 100% sure that it is correct). Describe your question/issue in the HELP section at codegym.cc/help.