@@ -0,0 +1,648 @@
+public class LeetCode0027 %7B%0A    public int removeElement(int%5B%5D nums, int val)%0A    %7B%0A        if (nums == null %7C%7C nums.length == 0) %7B%0A            return 0;%0A        %7D%0A%0A        int i = 0;%0A        int length = nums.length;%0A        while (i %3C length) %7B%0A            if (nums%5Bi%5D == val) %7B%0A                nums%5Bi%5D = nums%5B--length%5D;%0A            %7D%0A            else %7B%0A                i++;%0A            %7D%0A        %7D%0A        return length;%0A    %7D%0A%0A    public static void main(String%5B%5D args)%0A    %7B%0A        LeetCode0027 leetcode = new LeetCode0027();%0A        int%5B%5D nums = new int%5B%5D %7B 3, 2, 2, 3 %7D;%0A        System.out.println(leetcode.removeElement(nums, 3));%0A    %7D%0A%7D%0A

Add LeetCode0027.java