Eclipse - 补偿问题

Eclipse - Comp Issues

所以我正在尝试在 Eclipse 上构建一个电子邮件管理应用程序,但我遇到了一个问题 有。控制台显示:

Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
email cannot be resolved to a type

at emailapp.EmailApp.main(EmailApp.java:6)

这是我已经在 2 classes 中编写的代码:

打包电子邮件应用程序;

public class EmailApp {

public static void main(String[] args) {
    Email em1 = new email("Goanar","Rambang");
}

}


public class Email {
    private String firstName;
    private String lastName;
    private String password;
    private String department; 
    private int mailboxCapacity;
    private String alternateEmail; 
    
    //The Blueprint - Template
    // Add constructor for first and last name
    // Ask for department]
    // Generate random password
    // Set mailbox capacity
    // Set the alternate email
    // Change the password 

    //Constructor*/
    public Email(String firstName, String lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
        System.out.println("EMAIL CREATED " + this.firstName + "" + this.lastName);
    }
}

为什么我可能会搞砸我的应用程序?

问题出在 main 方法中,Email em1 = new email("Goanar","Rambang"); 其中 new email("Goanar","Rambang"); 应该是 new Email("Goanar","Rambang");