From 19b374039e4946d5c22e129c710456176861ce78 Mon Sep 17 00:00:00 2001 From: Uzi Landsmann Date: Wed, 24 Oct 2018 00:41:01 +0200 Subject: [PATCH] Updated two-fer readme according to https://github.com/exercism/problem-specifications/pull/1374 --- exercises/two-fer/README.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) 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