H:\CSC120\Java\lec33_summaxmin\src\SoccerTeam.java
 1 /*
 2  * To change this template, choose Tools | Templates
 3  * and open the template in the editor.
 4  */
 5 
 6 /**
 7  *
 8  * @author cindricbb
 9  */
10 public class SoccerTeam {
11     
12     private Integer year, wins, losses;
13     
14     public SoccerTeam( Integer y, Integer w, Integer loss) {
15         year = y;
16         wins = w;
17         losses = loss;
18     } // end of constructor
19     
20     public Integer getYear() {
21         return year;
22     } // end of getYear
23     
24     public Integer getWins() {
25         return wins;
26     } // end of getWins
27     
28     public Integer getLosses() {
29         return losses;
30     } // end of getLosses
31     
32     public String toString() {
33         return "In the year " + year
34                 + ", Mount Union's Women's Soccer team had a record of "
35                 + wins + " wins and " + losses + " losses";
36     }
37     
38 }  // end of class SoccerTeam
39 
40