@@ -0,0 +1,731 @@
+package leetcode;%0A%0Aimport java.util.Arrays;%0A%0Apublic class Task1365 %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        System.out.println(Arrays.toString(new Task1365().smallerNumbersThanCurrent(new int%5B%5D%7B8, 1, 2, 2, 3%7D)));%0A        System.out.println(Arrays.toString(new Task1365().smallerNumbersThanCurrent(new int%5B%5D%7B6, 5, 4, 8%7D)));%0A        System.out.println(Arrays.toString(new Task1365().smallerNumbersThanCurrent(new int%5B%5D%7B7, 7, 7, 7%7D)));%0A    %7D%0A%0A    public int%5B%5D smallerNumbersThanCurrent(int%5B%5D nums) %7B%0A        return Arrays.stream(nums)%0A                .map(num -%3E (int) Arrays.stream(nums)%0A                        .filter(otherNum -%3E otherNum %3C num)%0A                        .count())%0A                .toArray();%0A    %7D%0A%7D%0A

Add Task1365