I am new to Java, I want to store an array of pair of doubles. My code looks like this:
import java.util.ArrayList; import java.util.Map.Entry; List
If you have access to Entry class, you could create a constructor that takes key and value as parameters.
Entry pair = new Entry(0.5, 3.6); values.add(pair);