<qiyuangong>922_Sort_Array_By_Parity_II_2.java
public int[] sortArrayByParityII(int[] A) {
        int j = 1;
        for (int i = 0; i < A.length; i += 2)
            if (A[i] % 2 == 1) {
                while (A[j] % 2 == 1)
                    j += 2;

                int tmp = A[i];
                A[i] = A[j];
                A[j] = tmp;
            }

        return A;
    }
public int [ ] sample_funcname ( int [ ] var_0 ) {
  int var_2 = 1 ;
  for ( int var_4 = 0 ;
  var_4 < var_0 . length ;
  var_4 += 2 ) if ( var_0 [ var_4 ] % 2 == 1 ) {
    while ( var_0 [ var_2 ] % 2 == 1 ) var_2 += 2 ;
    int var_7 = var_0 [ var_4 ] ;
    var_0 [ var_4 ] = var_0 [ var_2 ] ;
    var_0 [ var_2 ] = var_7 ;
  }
  return var_0 ;
}
