A.6. The Team Class
// Team.java package nfl.original; import java.io.*; import java.util.*; /** An NFL team. Includes various statistics needed to * produce the standings. */ public class Team { // Identity private String name; public String getName() {return name; } public void setName(String n) {name = n; } private String city; public String getCity() {return city; } public void setCity(String c) {city = c; } public String getFullName() { return new String(city + " " + name); } private int conference; public void setConference(int c) {conference = c; } public int getConference() {return conference; } private int division; public void setDivision(int d) {division = d; } public int getDivision() {return division; } // data for standings, updated ...
Get J2EE™ and JAX™: Developing Web Applications and Web Services now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.