diff --git a/exercises/two-fer/README.md b/exercises/two-fer/README.md index 7eba7eaa3..d9e57becc 100644 --- a/exercises/two-fer/README.md +++ b/exercises/two-fer/README.md @@ -2,14 +2,28 @@ `Two-fer` or `2-fer` is short for two for one. One for you and one for me. +Given a name, return a string with the message: + +```text +One for X, one for me. +``` + +Where X is the given name. + +However, if the name is missing, return the string: + ```text -"One for X, one for me." +One for you, one for me. ``` -When X is a name or "you". +Here are some examples: -If the given name is "Alice", the result should be "One for Alice, one for me." -If no name is given, the result should be "One for you, one for me." +|Name | String to return +|:------:|:-----------------: +|Alice | One for Alice, one for me. +|Bob | One for Bob, one for me. +| | One for you, one for me. +|Zaphod | One for Zaphod, one for me. # Java Tips