Write a method called printStrings that accepts a String and a number of repetitions as parameters and

Question:

Write a method called printStrings that accepts a String and a number of repetitions as parameters and prints that String the given number of times with a space after each time. For example, the call

printStrings("abc", 5);

will print the following output:

abc abc abc abc abc

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: