Ad
  • Custom User Avatar

    Ah does this mean the int is immutable and I should declare it again?

  • Custom User Avatar

    My solution was exactly like this and I'm getting the error:

    ./src/main/java/Goals.java:7: error: <identifier> expected
      totalGoals = laLigaGoals + championsLeagueGoals + copaDelReyGoals;
                ^
    1 error
    

    class Goals {
    public static int laLigaGoals = 43;
    public static int championsLeagueGoals = 10;
    public static int copaDelReyGoals = 5;

    public static int totalGoals;
    totalGoals = laLigaGoals + championsLeagueGoals + copaDelReyGoals;
    }

  • Custom User Avatar

    I'm trying to debug using System.out.println and can't see output on the output screen or the debugger in chrome. How can I see what I'm trying to debug?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution