<gouthampradhan>bit_manipulation_HammingDistance_1.java
public int hammingDistance(int x, int y) {
    int z = (x ^ y);
    int count = 0;
    for (int i = 0; i < 31; i++) {
      if ((z & (1 << i)) > 0) {
        count++;
      }
    }
    return count;
  }
public int sample_funcname ( int var_0 , int var_1 ) {
  int var_2 = ( var_0 ^ var_1 ) ;
  int var_4 = 0 ;
  for ( int var_5 = 0 ;
  var_5 < 31 ;
  var_5 ++ ) {
    if ( ( var_2 & ( 1 << var_5 ) ) > 0 ) {
      var_4 ++ ;
    }
  }
  return var_4 ;
}
