@@ -0,0 +1,375 @@
+package leetcode;%0A%0Aimport java.util.Arrays;%0A%0A/**%0A * https://leetcode.com/problems/squares-of-a-sorted-array/%0A */%0Apublic class Problem977 %7B%0A    public int%5B%5D sortedSquares(int%5B%5D A) %7B%0A        int%5B%5D answer = new int%5BA.length%5D;%0A        for (int i = 0; i %3C A.length; i++) %7B%0A            answer%5Bi%5D = A%5Bi%5D * A%5Bi%5D;%0A        %7D%0A        Arrays.sort(answer);%0A        return answer;%0A    %7D%0A%7D%0A

Solve problem 977