Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions exercises/two-fer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down