/* Java program from Chapter 1 of Reges & Stepp. ** The program "draws" two boxes. No effort is made to avoid redundancy ** (as the block of four statements that draws a box is repeated twice). */ public class DrawBoxes { public static void main(String[] args) { System.out.println("+------+"); System.out.println("| |"); System.out.println("| |"); System.out.println("+------+"); System.out.println(); System.out.println("+------+"); System.out.println("| |"); System.out.println("| |"); System.out.println("+------+"); } }