โ Back to Printing
Question 268
Join Two String Variables
Join Two String Variables
Create two String variablesfirstset to "John" andlastset to "Doe", then print them with a single space between using concatenation: John Doe Use the+operator to join the pieces.
Expected Output:
John Doe
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท 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.