I get an error that says that the size variable might not have been initialized even though i have initialized it in the constructor. why doesn't this work ?=
public class Ore {
protected static final float size;
protected String name;
protected int itemID;
protected ArrayList<Mineral> minerals;
public Ore(float size, String name, int itemID){
this.size = size;
this.name = name;
this.itemID = itemID;
}
public String getPrizeData(int itemNumber){
String data = null;
return data;
}
public float getPrice(){
float price = 0;
return price;
}
}