No they are defined in different methods.
totals is defined in private static void printIncome(ArrayList<Income> income)
and
total is defined in private static void printBills(ArrayList<Bills>...
Type: Posts; User: cmoored
No they are defined in different methods.
totals is defined in private static void printIncome(ArrayList<Income> income)
and
total is defined in private static void printBills(ArrayList<Bills>...
public class BillsDriver
{
public static void main(String[] args)
{
//arrayList of Bills Class
ArrayList<Bills> bills = new ArrayList<Bills>();
//ArrayList of Income class
Yes.
I have tried adding:
double result = 0;
result = totals - total;
System.out.println("Results: " +result);
But I kept getting different errors to create a totals variable and a total...
I am new to programming and new to posting on this forum so please forgive me if I make any mistakes.
I have the following code:
public class BillsDriver
{
public static void...