```
public class Solution {
public int[] sortTransformedArray(int[] nums, int a, int b, int c) {
nums= IntStream.of(nums).boxed().mapToInt(x->(a*x*x+b*x+c)).toArray();
nums = IntStream.of(nums).boxed().sorted().mapToInt(i->i).toArray();
return nums;
}
}
```