Output a String 3 times

Output a String 3 times

Using a for-loop, write a method that will output a word 3 times with 0 spaces.

Example 1:


input data:
task
output:
tasktasktask

Example 2:


input data:
blink83
output:
blink83blink83blink83
View Code Template
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

3 thoughts on “Output a String 3 times

Comments are closed.