Bitwise shift operator in java --- syntax error?
I'm writing some code to calculate the number of 1s appeared in the 2's complement format of an integer. However, when I use the bitwise shift operator in java, I get a syntax error:

    class suan {
        int bitCount(int inputInt) {
           if (inputInt == 0)
               return 0;
           else if (inputInt > 0) {
               int c = 0;
               int origin = inputInt;
               for (int i=0; i<32; i++) {
                   inputInt=>>1;
                   if (origin == inputInt*2)
            	       c++;
                   origin = inputInt;
               }
               return c;
           } else {   
               return 32-bitCount(-1*inputInt-1);
           }        
        }	 
    }

Eclipse says that "inputInt=>>1" has "Syntax error on token ">>", delete this token.", but I can't see anything wrong with it. I haven't used bitwise operators before in Java, so I might have overlooked some stupid mistake. Thanks for the help.
Bitwise shift operator in java --- syntax error?
===

I'm writing some code to calculate the number of 1s appeared in the 2's complement format of an integer. However, when I use the bitwise shift operator in java, I get a syntax error:

    class suan {
        int bitCount(int inputInt) {
           if (inputInt == 0)
               return 0;
           else if (inputInt > 0) {
               int c = 0;
               int origin = inputInt;
               for (int i=0; i<32; i++) {
                   inputInt=>>1;
                   if (origin == inputInt*2)
            	       c++;
                   origin = inputInt;
               }
               return c;
           } else {   
               return 32-bitCount(-1*inputInt-1);
           }        
        }	 
    }

Eclipse says that "inputInt=>>1" has "Syntax error on token ">>", delete this token.", but I can't see anything wrong with it. I haven't used bitwise operators before in Java, so I might have overlooked some stupid mistake. Thanks for the help.