Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.09 seconds.

  1. Replies
    4
    Views
    1,037

    Re: Need help on a basic matter

    Right, that's because you're still using those static variables. Those should not be static. And you should not be accessing them directly. They need to belong to an instance of AlexHouse1.
  2. Replies
    4
    Views
    1,037

    Re: Need help on a basic matter

    You're trying to use static variables as member variables. Instead, you should be doing something like:

    AlexHouse1 house = new AlexHouse1();
    System.out.println("Alex House have a total of " +...
Results 1 to 2 of 2