Question: Write a method that you can call from a static main method to demonstrate its usage. This means your method will also be a static
Write a method that you can call from a static main method to demonstrate its usage. This means your method will also be a static method. The method should be called multiConcat that takes a String and an int as parameters. Return a String that consist of the String parameter concatenated with itself count times, where count is the int parameter. For example, if the parameter values are "hi" and 4 the return value should be "hihihihi". Return the passed string parameter if the int passed is less than 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
