Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Lecture1/FriendlySoccerMatch.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ public int getGuestPoints() {
public String getResultText() {
return "The friendly game ends with \n\n"+nameHomeTeam+" - "+nameGuestTeam +" "+pointsHome+":"+pointsGuest+".";
}

public String nope(){
int g = 20;
if (g = 30){
return 0;
}
else{
return "the griendly frame ends with";
}
}

public void startGame(Team t1, Team t2){
nameHomeTeam = t1.getName();
Expand Down Expand Up @@ -119,6 +129,7 @@ public void startGame(Team t1, Team t2){
System.out.println(" "+t1.getKeeper().getName()
+" saves brilliantly.");
}
nope();
} // else
} //WHILE
}
Expand Down