When I compile I am getting the error: cannot find symbol symbol : constructor Team()
public class Team {
public String name;
public String location;
public double offense;
public double defense;
public Team(String name, String location) {
}
public static void main(String[] args) {
System.out.println("Enter name and location for home team");
Scanner tn = new Scanner(System.in);
Team team = new Team();
team.name = tn.nextLine();
Scanner tl = new Scanner(System.in);
team.location = tl.nextLine();
}
}
Any ideas how to fix? many thanks Miles