Westonci.ca is the premier destination for reliable answers to your questions, brought to you by a community of experts. Get immediate and reliable answers to your questions from a community of experienced professionals on our platform. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

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.