public class CensusData
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
CensusGroup[] |
data
Array storing the census data.
|
int |
dataSize
Number of elements stored in the data array.
|
static int |
INITIAL_SIZE
Initial size of the data array.
|
| Constructor and Description |
|---|
CensusData()
Create a new CensusData object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int population,
float latitude,
float longitude)
Add a new census group to the array.
|
public static final int INITIAL_SIZE
public CensusGroup[] data
public int dataSize