public class Gold extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TOTAL_RESERVES
The total weight of gold available to be mined.
|
Constructor and Description |
---|
Gold(int weight)
Creates an amount of gold mined from the reserves.
|
public static final int TOTAL_RESERVES
public Gold(int weight)
weight
- The weight of gold to mine.weight >= 0
public int getWeight()
public static int remaining()
public String toString()
public static void main(String[] args)