Solve: String Times
Imported By: Geoffrey Challen
/ Version: 2021.4.0
Given a String
and a non-negative int
, return a String
that is n copies of the original string.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.String stringTimes(String input, int n) {
return "";
}