Search:

Type: Posts; User: Norm

Search: Search took 0.16 seconds.

  1. Replies
    7
    Views
    879

    Re: ArrayList question

    variables defined in a method are only known inside that method. If you want several methods to be able to access them, define them at the class level as instance variables.

    A better solution is...
  2. Replies
    7
    Views
    879

    Re: ArrayList question

    Are those two variables defined in scope with where they are being used? In scope means defined within the same {}s as where used.

    class A_Class {
    int classVar; // define at class level; in...
  3. Replies
    7
    Views
    879

    Re: ArrayList question

    Please copy the full text of the error message and paste it here. It has important info about the error.

    Can the definitions of the methods that compute the totals be changed to have the methods...
  4. Replies
    7
    Views
    879

    Re: ArrayList question

    Is this what you are asking:
    result = totalOfIncome - totalOfBills;
Results 1 to 4 of 4