I'm new to list, but I'm trying to return an empty list through a method, so that list can be used somewhere else. But I don't know how to do it.
public List<Something> login (String user, String key){
if (success) {
System.out.println("Welcome");
return (THIS IS WHERE I WANT TO RETURN AN EMPTY LIST);
}
System.out.println("Incorrect Information");
return null;
}