I realized it worked but don't understand why the value would be null.
--- Update ---
Oh now I see it's because its already initialized in param, so when you reinitialize in the subcode itself...
Type: Posts; User: llowe29
I realized it worked but don't understand why the value would be null.
--- Update ---
Oh now I see it's because its already initialized in param, so when you reinitialize in the subcode itself...
Wait why?
Also should I do the same thing for Monthly Price.
I get NaN for all the values when I run the code. Not sure why? Here is the code.
import java.util.ArrayList;
class CO2FromElectricity
{
CO2FromElectricity()
{
//default...