I wanna make an arraylist of arrays in java

so i declare it like that
ArrayList arr = new ArrayList();
then when i want to add elements so i add an array like that
arr.add(new double []{5.0,2});
but i've got a problem to access to the element of the array, I wrote this code but it didn't work
arr.get(0) [0];