// PROBLEM
// Write a C function that determines whether a computer is big-endian or 
// little-endian.

#include <stdio.h>
#include <stdbool.h>

    bool isLittleEndian() {
        union {
            int theInteger;
            char singleByte;
        } endianTest;
        endianTest.theInteger = 1;
        return endianTest.singleByte;
    }

void main() {
    
}


@@ -1,10 +1,14 @@
 /
-/
+**%0A *
  PROBLEM
@@ -8,18 +8,18 @@
 PROBLEM%0A
-//
+ *
  Write a
@@ -23,10 +23,8 @@
 e a 
-C 
 func
@@ -48,326 +48,354 @@
 nes 
-whether a computer is big-endian or %0A// little-endian.%0A%0A#include %3Cstdio.h%3E%0A#include %3Cstdbool.h%3E%0A%0A    bool isLittleEndian() %7B%0A        union %7B%0A            int theInteger;%0A            char singleByte;%0A        %7D endianTest;%0A        endianTest.theInteger = 1;%0A        return endianTest.singleByte;%0A    %7D%0A%0Avoid main() %7B%0A    
+the number of 1 bits in the binary representation of a given integer.%0A */%0Apublic class NumberOfOnes %7B%0A    int numOnesBinary (int number) %7B%0A        int numOnes = 0;%0A        while (number != 0) %7B%0A            if ((number & 1) == 1) %7B%0A                numOnes ++;%0A            %7D%0A            number = number %3E%3E%3E 1;%0A        %7D%0A        return numOnes;%0A    %7D
 %0A%7D%0A
-%0A

Update NumberOfOnes.java