@@ -0,0 +1,314 @@
+package LeetCode.Java;%0A%0A/**%0A * Created by tank on 17/3/23.%0A */%0Apublic class NumberComplement %7B%0A    public int findComplement(int num) %7B%0A        String binary = Integer.toBinaryString(num);%0A        int numberComplement = (int)((long)Math.pow(2, binary.length()) - 1 - num);%0A        return numberComplement;%0A    %7D%0A%7D%0A

476.Number Complement