Well I've sorted my AddressBook Class out for the time being .. i think
Working on the View Entries in my text ui
This is my AddressBook Class now:
And inside my TextBookUi Class
When i compile however it says that it cannot find the variable name and i presume address as well.
I believe its looking in the correct place my contact class
Hey,
I have the majority of the program working now with all the classes.
Currently working on the addEntry() method within the AddressTextUi.
All the classes compile and i am able to show the menu, when you enter the right option it goes to add entry
it then asks for each of the data variables to be entered forename, surename, street address so on. However once it gets to the end on the last input i get an error message
I'm just trying to get the AddressBook class working, i only really need the menu in the text ui i think.
The search by last name and print all contacts work fine but looking at the add entry which was taken from the old it doesn't link at all with the other classes, I really need help sorting this am getting a bit flustered as i only have a couple days left to finish, Please help
Thanks i'll have a read, are these methods essential for this to work then because this is the first i've seen any of this. Also nothing happens when you call the void main(String[]args) method from the postcodedemo
yeah i thought that and didn't have a parameter for the get method before i must of read something wrong and put it in for some reason. I've cleared it up now so it's less confusing with the postcode class and the type.
Still having this issue in my address class though when typing in a postcode
So this is the current code in the address class, it compiles now but when you try and set the postcode i get an error - found java.lang.string but expected Postcode, the get postcode method seems to work fine but as i can't seem it set it i only return a null each time which is expected
Yeah i mentioned it previously, i've fixed that now so it works properly.
I also need the method get postcode i assume in the address class, i keep getting an error saying it finds postcode but expected java.lang.string which it is.
After this i think i can pretty much sort out addressbook and contact class