String
s
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. For
example, the call:
printStrings("abc", 5);
will print the following output:
abcabcabcabcabc
main
method.
Try calling your method several times from main
and see what
happens when you pass different values.