Write a method called makerow that is passed two arguments


Question- Write a method called makeRow that is passed two arguments: an int and a String. It returns a String containing n copies of s, concatenated in a row.

For case, if we call the method with makeRow(5, "*"), the method returns *****.

(note: you don't have to ask the user for the values, you can just specify 5, "*" in the main to print *****)

Prepare a main method that uses the method to print the string *****=====*****.

Provide justification for your choices. Is there anybody who knows how to do this?

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a method called makerow that is passed two arguments
Reference No:- TGS0966364

Expected delivery within 24 Hours