Currently I am trying to write a code that will create a list from various points coordinates and then remove 3 smallest ints from the list. When I run the app, it crashes. I figured out that i happens in remove part. I have looked into other similar threads, but the solution are similar to what I have. Here's the code I have:

```
    List<Integer> XPoint = Arrays.asList(A.x, B.x, C.x, D.x, E.x, F.x, G.x, K.x);
    List<Integer> XPLeft = Arrays.asList();
    int XPLeftTimes = 0;

    //Find 3 min X values(left)
    while(XPLeftTimes != 2){
    int Left = Collections.min(XPoint);
    XPoint.remove(Left); <-App crashes here
    XPLeft.add(Left);
    XPLeftTimes++;
    }

```

![enter image description here](https://i.stack.imgur.com/QUMl1.jpg)

What am I doing wrong? Thanks in advance.