i'm learning about arraylist now, and i no have idea, why somebody removing last element like this:

```
l = list.size();

```

.

```
if (list != null && !list.isEmpty()) {
    list.remove(l);}

```

this is not the same as:

```
                if (list != null ) {
                    list.remove(l);}

```

or

```
                if (!list.isEmpty()) {
                    list.remove(l);}

```

? Somebody can explain it ?