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?

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){ = name; = email;
         this.password = password;

import java.util.ArrayList;

public class Employers {

    private ArrayList<Employer> employers = new ArrayList<Employer>();
    employers.add("John Smith", "", "super123");

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


You need to explicitly type the class

employers.add(new Employer("John Smith", "", "super123"));

PS this will need to be in a code block