I'm working with parameters right now in Java, and my colleague told me that this code of mine is redundant, and I see his point. The for loops do look redundant, but I have no idea how to go about changing this. My code is functional, but I wish to improve it.public static void printLine(int length) {    for (int i = 1; i <= length; i++)     {        System.out.print(*);    }           System.out.println();}public static void printBox(int length, int height) {    printLine(length);    for (int i = 1; i <= height - 2; i++)     {    System.out.print(*);             for (int j = 1; j <= length - 2; j++)         {            System.out.print( );        }        System.out.println(*);    }     printLine(length);     } 
Building Better Boxes
java;beginner;ascii art