Create a method named multiConcat that has two parameters: a String and an integer. Give back a String that is created by concatenating the string given with itself count times, where count is the integer parameter. For instance, the return value is "hihihihi" if the argument values are "hi" and 4. In the event that the integer parameter is less than 2, give the initial string.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 9E
icon
Related questions
Question

Create a method named multiConcat that has two parameters: a String and an integer. Give back a String that is created by concatenating the string given with itself count times, where count is the integer parameter. For instance, the return value is "hihihihi" if the argument values are "hi" and 4. In the event that the integer parameter is less than 2, give the initial string.

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Math class and its different methods
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,