CO2Footprint fp0 = new CO2Footprint(3, 2604.0, 227.29, 0.084, true, true, true, true, 9);
CO2Footprint fp1 = new CO2Footprint(6, 3029.0, 213.28, 0.081, false, true, false, true, 3);
CO2Footprint fp2 = new CO2Footprint(2, 3590.0, 234.78, 0.085, true, false, true, false, 5);
CO2Footprint fp3 = new CO2Footprint(10,3590.0, 256.04, 0.084, false, false, false, false, 1);
CO2Footprint fp4 = new CO2Footprint(1, 1362.0, 221.96, 0.086, true, true, true, true, 8);
fp0.calculateGasEmissions();
fp0.calculateElectricityEmissions();
fp0.calcWasteReduction();
fp0.calcGrossWasteEmission();
fp0.calcEmissionReductionTotals();
fp0.calcCO2Footprint();
fp1.calculateGasEmissions();
fp1.calculateElectricityEmissions();
fp1.calcWasteReduction();
fp1.calcGrossWasteEmission();
fp1.calcEmissionReductionTotals();
fp1.calcCO2Footprint();
fp2.calculateGasEmissions();
fp2.calculateElectricityEmissions();
fp2.calcWasteReduction();
fp2.calcGrossWasteEmission();
fp2.calcEmissionReductionTotals();
fp2.calcCO2Footprint();
fp3.calculateGasEmissions();
fp3.calculateElectricityEmissions();
fp3.calcWasteReduction();
fp3.calcGrossWasteEmission();
fp3.calcEmissionReductionTotals();
fp3.calcCO2Footprint();
fp4.calculateGasEmissions();
fp4.calculateElectricityEmissions();
fp4.calcWasteReduction();
fp4.calcGrossWasteEmission();
fp4.calcEmissionReductionTotals();
fp4.calcCO2Footprint();
//print results
System.out.println("| Pounds of CO2 | Pounds of CO2 | |");
System.out.println("| Emmited from | Reduced from | |");
System.out.println("| Gas | Electricity | Waste | Recycling | New Bulbs | CO2 Footprint |");
System.out.println("|"fp0.gasFootPrint "|");
^
|
|
my return on my calcualteGasEmissions method is gasFootPrint. im trying to print the return for the first family there where the arrow is pointing. my question is, is there a better way to do this? im doing it and it just doesnt look like a way that it should be done.

New Topic/Question
Reply



MultiQuote









|