Simple Java Loop solution
Runtime: \n1 ms beats = 99.94%\n\n# Runtime: \n42.5 MB beats = 72.91%\n\n# Code\nThis is my qute simple solution via loop on each bit and sum of bit values\n\n\
# Runtime: \n1 ms beats = 99.94%\n\n# Runtime: \n42.5 MB beats = 72.91%\n\n# Code\nThis is my qute simple solution via loop on each bit and sum of bit values\n\n```\nclass Solution {\n    public int[] evenOddBit(int n) {\n        int evenCount = 0;\n        int oddCount = 0;\n        \n        for (int evenBitPosition = 0, oddBitPosition = 1; oddBitPosition < 32; evenBitPosition += 2, oddBitPosition += 2) {\n            evenCount += 0x1 & (n >> evenBitPosition);\n            oddCount += 0x1 & (n >> oddBitPosition);\n        }\n\n        return new int[] {evenCount, oddCount};\n    }\n}\n```
['Java']