How would I correctly use arrays in this case?
<p>I've created two classes, <code>Waitlist</code> and <code>Party</code>. The <code>Waitlist</code> class will work with a list of <code>LocalTime</code>s and have multiple <code>Party</code>s assigned to each <code>LocalTime</code>. It is unclear to me whether I should make an array of <code>LocalTime</code>s and an array of <code>Party[]</code>s or if I should utilize <code>ArrayList</code>s somehow or if a <code>HashMap</code> is a good option in this case. </p>

<p><code>Waitlist.java</code></p>

<pre><code>public class Waitlist {

    private static final int N = 74;
    private LocalTime[] times;
    private ArrayList&lt;Party&gt;[] slots;
    private HashMap&lt;LocalTime, ArrayList&lt;Party&gt;[]&gt; list;

    public Waitlist() {
    // initialize variables

    //init `times`
    times = new LocalTime[N];
    slots = new ArrayList[N];
    int h = 9; // open
    int m = 0;
    for (int i = 0; i &lt; N; i++) {
        slots[i] = new ArrayList&lt;&gt;();
        times[i] = LocalTime.of(h, m);
        if (m == 48) {
        h++;
        m = 0;
        } else {
        m += 12;
        }
    }
    }
}
</code></pre>