posted 10 years ago
Obviously this is part of an assignment, and I'm very afraid there might be some serious beginner mistakes involved.
This is supposed to be a apartment booking system. What I want to do is to save a counter, in this case counting how many rooms is occupied from any of the three apartment types; aptA, aptB and aptM. To make this work I need to be able to store and load these values everytime the program starts.
Right now I have come to the point where I'm not getting any error or exceptions when I run the code, which would be an orgasmic feeling if it weren't for the fact that it isn't really loading anything, as far as I can see...
Eclipse gives me a hint though:
It says that "the value of the local variable apartment is not used".
What am I doing wrong? I have been looking at this for over a week, trying to figure it out, obviously without success. Is there any other ways of doing what I want to do, that might be a better solution to the problem?