<qiyuangong>905_Sort_Array_By_Parity_1.java
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;
    }
public int [ ] sample_funcname ( int [ ] var_0 ) {
  int [ ] var_2 = new int [ var_0 . length ] ;
  int var_4 = 0 ;
  for ( int var_5 : var_0 ) if ( var_5 % 2 == 0 ) var_2 [ var_4 ++ ] = var_5 ;
  for ( int var_5 : var_0 ) if ( var_5 % 2 == 1 ) var_2 [ var_4 ++ ] = var_5 ;
  return var_2 ;
}
