Java Please:
Your boss, Gavin, has sent a list of rules by which to guide you
to have a good run in corporation and be advanced in the post.
Besides the obvious things like not leaving your
workstation's unlocked when you have to go to the toilet or not the
fridge kombucha drink all common've noticed a strange rule.
The rule says that employees should not consume too much time on
sending emails. When sending an email, it is not necessary to
repeat a word that implies that the other person already understood
what it was about the first time you've said. Therefore,
e-mails you send should appear every word that you want to convey
once.
Excited about the new job and eager to start work on the
project, you thought your boss send them an email of thanks for the
list, where it and ask what tasks still work. You wrote an
e-mail, but even before you realize that you send non-compliant
company!
Now you have to convert it as quickly as you prove yourself
effectively. E-mail consists of small letters of the English
alphabet and spaces. Your task is now to convert it into a
list of words in alphabetical order, each word of the original text
to appear once.
Input
You read keyboard email text to be converted. This may extend
over multiple lines.
Output
It will display distinct words from the text read, in alphabetical
order, one per line.
Specifications
Example
thanks for the list of instructions
It's helpful
thanks
Output:
thanks
for
the
list
of
instructions
It's
helpful
thanks
Java Please: Your boss, Gavin, has sent a list of rules by which to guide you to have a good run in corporation and be a
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am