hi it is me again my question now is that my professor ask me to store 4 different x and y values in an array list and i did in this way

Code:
private void createTargets()
    {
        double ax = 125;
        double ay = 175;
        double aradius = 7;
        String input = JOptionPane.showInputDialog("Type an integer" +
                " between 2 and 5");
        int number = Integer.parseInt(input);
         
         
        for(int i = 0; i < number; i++)
        {
            Target targ = new Target(ax, ay, aradius);
            targets.add(targ);
            Random rand = new Random();
            ax = rand.nextInt(300) + 10;
             
        }
         
    }
now my problem is that i need to get the individual x or y coordinates to be able to draw some circles but i do not know hot to extract the x and y coord from the array list to use it later?? help please