Get the answers you need at Westonci.ca, where our expert community is dedicated to providing you with accurate information. Discover in-depth solutions to your questions from a wide range of experts on our user-friendly Q&A platform. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.

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.