The boxstring method contains two loops for for printing a line of - characters, one at the top and one at the bottom. Since the code is the same, place it into a separate method printline, and use that method to simplify boxstring



Answer :

Other Questions