Create an array list of array lists

ArrayList<ArrayList<Double>> clusters = new ArrayList<ArrayList<Double>>();


Then, each time you want a new cluster do:

ArrayList<Double> set = new...