@@ -0,0 +1,684 @@
+import java.util.Scanner;%0A%0Apublic class Main %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%0A        System.out.println(%22+%22 + repeatStr(%22 -%22, n - 2) + %22 +%22);%0A%0A        for (int i = 0; i %3C n - 2; i++) %7B%0A            System.out.println(%22%7C%22 + repeatStr(%22 -%22, n - 2) + %22 %7C%22);%0A        %7D%0A%0A        System.out.println(%22+%22 + repeatStr(%22 -%22, n - 2) + %22 +%22);%0A    %7D%0A%0A    private static String repeatStr(String str, int count) %7B%0A        StringBuilder sb = new StringBuilder();%0A        for (int i = 0; i %3C count; i++) %7B%0A            sb.append(str);%0A        %7D%0A        return sb.toString();%0A    %7D%0A%7D%0A

Create 05.SquareFrame.java