Problem Statement | |||||||||||||
We have a collection of Strings, and we want to right justify them.
Given a String[] text, your task is to return
a String[] containing the same Strings, right justified, in the same order as they
appear in text.
The returned Strings should be padded on the left with space characters so that they are all the same length as the longest String in textIn. | |||||||||||||
Definition | |||||||||||||
| |||||||||||||
Constraints | |||||||||||||
- | text will contain between 1 and 50 elements inclusive | ||||||||||||
- | each element of text will contain only uppercase letters 'A'-'Z' | ||||||||||||
- | each element of text will contain between 1 and 50 characters inclusive | ||||||||||||
Examples | |||||||||||||
0) | |||||||||||||
| |||||||||||||
1) | |||||||||||||
| |||||||||||||
2) | |||||||||||||
|