Question: EX 7.4 Write a method called multiconcat that takes a String and an integer as parameters. Return a string that consists of the string

EX 7.4 Write a method called multiconcat that takes a String and an integer as parameters. Return a string that consists of the string parameter concatenated with itself count times, where count is the integer parameter. For example, if the parameter values are "hi" and 4, the return value is "hihihihi". Return the original string if the integer parameter is less than 2.
Step by Step Solution
3.47 Rating (150 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
