Having some problems trying to call a method from a class.
Have my main method below

```
private static boolean findStudentId() {
        System.out.println("Please enter your student ID to search for your profile");
        int searchId = scanner.nextInt();
        //need to be able to find a student's profile from the arraylist by searching their ID
        return false;
    }

```

I am trying to call a method from another class and cannot do so. this is my other class I am trying to call

```
public boolean findStudent(int id) {
        for(int i = 0; i< students.size();i++)
        {
            if (students.equals(id)) {
                System.out.println("Found the profile containing information for " + id);
//                System.out.println(id.getFirstName()+id.getFirstName()+id.getLastName()+id.getDob());
                return true;
            } else
                System.out.println("Could not find a profile based on the ID you provided");
        }
        return false;
    }

```

this is my student class that I have created that proclaims the students

```
public class Student {
    private int id;
    private String firstName;
    private String lastName;
    private String dob;

    public Student(int id,String firstName, String lastName, String dob) {
        this.id = id;
        this.firstName = firstName;
        this.lastName = lastName;
        this.dob = dob;
    }

    public int getId() {
        return id;
    }

    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public String getDob() {
        return dob;
    }

    public static Student createStudentID(int id,String firstName, String lastName, String dob)
    {
        return new Student(id,firstName, lastName, dob);
    }
}

```