I want to emphasize anbin's point: a getter method to obtain the variable this' value is called getThis and a setter method to store a value in the variable 'this' is called setThis(). The naming is...
Type: Posts; User: GregBrannon
I want to emphasize anbin's point: a getter method to obtain the variable this' value is called getThis and a setter method to store a value in the variable 'this' is called setThis(). The naming is...
Well, you're way beyond the starting line - that's a good thing - and you're finally showing some progress. Except for inconsistent capitalization (not wrong, just annoying), random code indentation...
So there are two parts to the first statement you posted, declaration and initialization. Take that thought and go back to your first statement in post #12, reread, rethink.
Why are you collecting programming 'ideas' from multiple sources? Some of those ideas may be good, others not so good, but you've demonstrated that you can't tell the difference or that you can't...
You've made no progress that I can see. What are findStreet, findCity, findState, and findZip? And how will this work:
public void setStreet(int newStreet) {
street = newStreet;
...
It's not annoying that you keep posting - that's what a forum is for. It is annoying or frustrating that we've told you repeatedly what getter/accessor and setter/mutator methods are, shown you...