Write a method called doubleconcat that takes a string and


Question: Write a method called doubleConcat that takes a String and an integer as parameters. Return a String that consists of the string parameter concatenated with itself twice the number times, where number is an integer parameter. For example, if the parameter values are "hello" and 1, the return value should be "hellohello". Return the original string if the integer parameter is less than 1.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a method called doubleconcat that takes a string and
Reference No:- TGS02318651

Expected delivery within 24 Hours