Search:

Type: Posts; User: cmoored

Search: Search took 0.09 seconds.

  1. Replies
    7
    Views
    879

    Re: ArrayList question

    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>...
  2. Replies
    7
    Views
    879

    Re: ArrayList question

    public class BillsDriver
    {


    public static void main(String[] args)
    {
    //arrayList of Bills Class
    ArrayList<Bills> bills = new ArrayList<Bills>();

    //ArrayList of Income class
  3. Replies
    7
    Views
    879

    Re: ArrayList question

    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...
  4. Replies
    7
    Views
    879

    ArrayList question

    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...
Results 1 to 4 of 4