Main.java:1: error: class User is public, should be declared in a file named User.java
public class User {
^
Main.java:7: error: cannot find symbol
return Objects.hash(email, username);
^
symbol: variable Objects
location: class User
Main.java:22: error: cannot find symbol
return Objects.equals(password, other.password) && Objects.equals(username, other.username);
^
symbol: variable password
location: class User
Main.java:22: error: cannot find symbol
return Objects.equals(password, other.password) && Objects.equals(username, other.username);
^
symbol: variable password
location: variable other of type User
Main.java:22: error: cannot find symbol
return Objects.equals(password, other.password) && Objects.equals(username, other.username);
^
symbol: variable Objects
location: class User
Main.java:22: error: cannot find symbol
return Objects.equals(password, other.password) && Objects.equals(username, other.username);
^
symbol: variable Objects
location: class User
6 errors