@@ -0,0 +1,510 @@
+package leetcode;%0A%0Apublic class Task27 %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        System.out.println(new Task27().removeElement(new int%5B%5D%7B3, 2, 2, 3%7D, 3));%0A        System.out.println(new Task27().removeElement(new int%5B%5D%7B0, 1, 2, 2, 3, 0, 4, 2%7D, 2));%0A    %7D%0A%0A    public int removeElement(int%5B%5D nums, int val) %7B%0A        int j = 0;%0A        for (int i = 0; i %3C nums.length; i++) %7B%0A            if (nums%5Bi%5D != val) %7B%0A                nums%5Bj++%5D = nums%5Bi%5D;%0A            %7D%0A        %7D%0A        return j;%0A    %7D%0A%7D%0A

Add Task27