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
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
Step by Step Solution
3.48 Rating (168 Votes )
There are 3 Steps involved in it
public stati... View full answer
Get step-by-step solutions from verified subject matter experts
