Author | Message |
---|---|
tandluong
Posts: 7
|
Posted 21:55 Oct 06, 2016 |
I am not sure whether if there is a problem with my constructor, or how I saved the address input into a list, but when I try to toString() my Address Class I keep getting default values. My address class contains int, string, string, string, string. Which then returns 0, null, null, null, null. Any ideas on what I can do to fix this?
|
rcamach7
Posts: 31
|
Posted 22:49 Oct 06, 2016 |
Try using this.streetNum(or whatever you called it) for each one when you refer to the variables in the toString method. |