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.
Type: Posts; User: KevinWorkman
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.
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 " +...