Can’t add an item to arrayList

I am currently having an issue where I have outlined the parameters of my constructor and what I want it to take in. However trying to add elements via an ArrayList, I keep getting an error message saying "identifier expected". Any ideas on what I am doing wrong?

Employer.java:

public class Employer {

    private String name;
    private String email;
    private String password;
    private Employees employees;
    private STP stp;


     Employer(String name, String email, String password){
         this.name = name;
         this.email = email;
         this.password = password;
     }           
}

Employers.java:

import java.util.ArrayList;

public class Employers {

    private ArrayList<Employer> employers = new ArrayList<Employer>();
    
    employers.add("John Smith", "john.smith@example.com", "super123");
}

I am just trying to figure out what I am doing wrong or if I have taken the wrong approach.

Answer

You need to explicitly type the class

employers.add(new Employer("John Smith", "john.smith@example.com", "super123"));

PS this will need to be in a code block