class teams { public static void main(String[] args) { int r; boolean b; team mets = new team(); team yankees = new team(); r = mets.win(); r = yankees.lose(); r = mets.win(); r = yankees.win(); b = mets.compare(yankees); if (b) System.out.println("go mets\n"); else System.out.println("go yankees\n"); } } class team { int wins = 0; int losses = 0; public int win() { wins=wins+1; return wins; } public int lose() { losses=losses+1; return losses; } public int getwins() { return wins;} // can you compile a method that takes another object as arg? public boolean compare(team otherteam) { int w = this.getwins(); int l = otherteam.getwins(); return (l < w); // true if I have more wins than otherteam } }