//adding monthly bills to the arraylist
billList.add(174.47);
billList.add(341.25);
billList.add(207.81);
billList.add(96.07);
billList.add(181.60);
billList.add(83.52);
billList.add(124.68);
billList.add(169.46);
billList.add(154.74);
billList.add(85.04);
billList.add(145.40);
billList.add(200.64);
//adding montly total bill to an arraylist
totalBillList.add(205.04);
totalBillList.add(372.45);
totalBillList.add(237.62);
totalBillList.add(123.89);
totalBillList.add(215.12);
totalBillList.add(111.56);
totalBillList.add(157.12);
totalBillList.add(197.52);
totalBillList.add(187.14);
totalBillList.add(116.32);
totalBillList.add(177.87);
totalBillList.add(232.21);
CO2FromElectricity electriccompany = new CO2FromElectricity();
}
}
I want to print just one from an array list, but all I can get it to do is print them all out. How do I get it so that just one prints out? Nothing I try seems to work!