Home /
Expert Answers /
Computer Science /
the-boxstring-method-contains-two-loops-for-for-printing-a-line-of-characters-one-at-the-top-and-pa598
(Solved): The boxString method contains two loops for for printing a line of - characters, one at the top and ...
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.