comefrom: <qiyuangong>905_Sort_Array_By_Parity_1.java
code: public int[] sortArrayByParity(int[] A) {
          int[] ans = new int[A.length];
          int pos = 0;
          for (int num: A) 
              if (num % 2 == 0)
                  ans[pos++] = num;
          for (int num: A) 
              if (num % 2 == 1)
                  ans[pos++] = num;
          return ans;
      }
masked: public int [ ] sample_funcname ( int [ ] var_0 ) {
    int [ ] var_1 = new int [ var_0 . length ] ;
    int var_2 = 0 ;
    for ( int var_3 : var_0 ) if ( var_3 % 2 == 0 ) var_1 [ var_2 ++ ] = var_3 ;
    for ( int var_3 : var_0 ) if ( var_3 % 2 == 1 ) var_1 [ var_2 ++ ] = var_3 ;
    return var_1 ;
  }
  