<gouthampradhan>array_ArrayPartitionI_1.java
public int arrayPairSum(int[] nums) {
    Arrays.sort(nums);
    int sum = 0;
    for (int i = 1; i < nums.length; i += 2) {
      sum += Math.min(nums[i - 1], nums[i]);
    }
    return sum;
  }
public int sample_funcname ( int [ ] var_0 ) {
  Arrays . sort ( var_0 ) ;
  int var_4 = 0 ;
  for ( int var_6 = 1 ;
  var_6 < var_0 . length ;
  var_6 += 2 ) {
    var_4 += Math . min ( var_0 [ var_6 - 1 ] , var_0 [ var_6 ] ) ;
  }
  return var_4 ;
}
