@@ -0,0 +1,902 @@
+import java.util.Scanner;%0A%0Apublic class DrawAFilledSquare %7B%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scanner = new Scanner(System.in);%0A        int n = Integer.parseInt(scanner.nextLine());%0A        printHeaderRow(n);%0A        printMiddleRow(n);%0A        printHeaderRow(n);%0A    %7D%0A%0A    private static void printHeaderRow(int n) %7B%0A        System.out.println(repeatString(%22-%22, 2 * n));%0A    %7D%0A%0A    private static void printMiddleRow(int n) %7B%0A        for (int i = 0; i %3C n - 2; i++) %7B%0A            System.out.print(%22-%22);%0A            for (int j = 1; j %3C n; j++) %7B%0A                System.out.print(%22%5C%5C/%22);%0A            %7D%0A            System.out.printf(%22-%25n%22);%0A        %7D%0A    %7D%0A%0A    private static String repeatString(String s, int n) %7B%0A        StringBuilder sb = new StringBuilder();%0A        for (int i = 0; i %3C n; i++) %7B%0A            sb.append(s);%0A        %7D%0A%0A        return sb.toString();%0A    %7D%0A%7D%0A

Create 04.DrawAFilledSquare.java