I create a list of object with java
public class Cleint {
private int id;
private String user;
private int age;
public static List<Client> last100CleintList;
The list is supposed to be a kind of queue where the last 100 clients are stored. So when the list is empty I just want to add clients but when I reach 100 I want to delete the last one and add the new one. I could do it manually but is there a function for that? Or maybe in arrays, I am not forced to use lists.