// Computer Science 121
// Example that draws a simple box.

public class DrawABox
{
    public static void main (String [] args)
    {
        Box box = new Box ();
        box.drawBox ();
    } // main method
} // class DrawABox

class Box
{
    private int width, height;

    public void drawBox ()
    {
        for (int row = 0; row < 20; row +=2)
        {
            for (int col = 0; col < 48; col+=4)
            {
                if (row % 4 == 0)
                    System.out.print ("| |--");
                else
                    System.out.print ("--| |");
            }
            System.out.println ("");
        }
    } // method drawBox
} // class Box

/* Output

||--||--||--||--||--||--||--||--||--||--||--||--
--||--||--||--||--||--||--||--||--||--||--||--||
||--||--||--||--||--||--||--||--||--||--||--||--
--||--||--||--||--||--||--||--||--||--||--||--||
||--||--||--||--||--||--||--||--||--||--||--||--
--||--||--||--||--||--||--||--||--||--||--||--||
||--||--||--||--||--||--||--||--||--||--||--||--
--||--||--||--||--||--||--||--||--||--||--||--||
||--||--||--||--||--||--||--||--||--||--||--||--
--||--||--||--||--||--||--||--||--||--||--||--||

*/