package io.iron.ironmq;

import java.util.ArrayList;

public class Messages {
    //    private Message[] messages;
    private ArrayList<Message> messages;

    public Messages(ArrayList<Message> messageArrayList){
        this.messages = messageArrayList;
    }

    public Message getMessage(int i) {
        return messages.get(i);
    }

    public ArrayList<Message> getMessages() {
        return messages;
    }

    public int getSize() {
        return messages.size();
    }
}

package io.iron.ironmq;

import java.util.ArrayList;

public class Messages {
    private ArrayList<Message> messages;

    public Messages(ArrayList<Message> messageArrayList){
        this.messages = messageArrayList;
    }

    public Message getMessage(int i) {
        return messages.get(i);
    }

    public ArrayList<Message> getMessages() {
        return messages;
    }

    public int getSize() {
        return messages.size();
    }
}

Comment removed