How do I store a set of paired numbers in java? Do I use lists or arrays or maybe something else?
eg. [ (1,1) , (2,1) , (3,5)]
You can use the class Pair!
import javafx.util.Pair; int x = 23; int y = 98; Pair pair1 = new Pair<>(6, 7); Pair pair2 = new Pair<>(x, y);
I hope this helps you!