CJCoding With Joseph
15free / daySign inCreate account

String Alignment

Create three string variables with the names "Alice", "Bob", and "Charlie".
Print them so that:

• The first is left aligned in a 10-character wide space
• The second is right aligned in a 10-character wide space
• The third is left aligned in a 10-character wide space

Expected Output:

|Alice     |
|       Bob|
|Charlie   |

= newline. The output ends with a newline — print one after the last line.

Hints4 available
Topics:
Printing
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (sysout, psvm, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.