Concatenate two Strings

Concatenate two Strings

Write a method that will ask for a user to input the two words and outputs the same words joined by the word ‘and’.

Example 1:


input data:
zed coder
output:
zed and coder

Example 2:


input data:
pre submit
output:
pre and submit
View Java Solution

Seda
Seda Kunda is a web designer and developer with a degree in Computer Science and a great passion for code. Besides code, she enjoys pepperoni pizza, watching the bachelor and sleeping in on Saturdays.
Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn