Short || Clean || Java
\njava []\nclass Solution {\n    public int[] evenOddBit(int n) {\n        int[] res = new int[2];\n        String bit = Integer.toBinaryString(n);\n        for
\n```java []\nclass Solution {\n    public int[] evenOddBit(int n) {\n        int[] res = new int[2];\n        String bit = Integer.toBinaryString(n);\n        for(int i=bit.length()-1, k=0; i>=0; i--){\n            if(i % 2 == 0)  res[0] += bit.charAt(k++) - \'0\';\n            else    res[1] += bit.charAt(k++) - \'0\';\n        }\n        return res;\n    }\n}\n```
['Java']