Re: Help with button to ArrayList

If I get the question right (it's in norwegian so I'm translating to english) I'm gonna put the text from text field to the instance variable al,
and it should be in the action button "Save Post".

The question after this one is "Change the action in the button "Save Post" so that all entries in the array list will be posted in the text area"
This meaning I will put ArrayList in the button? and if so how?

I have tried a couple of stuff but I just delated it because I found out it was totally wrong, so now I'm back on nothing again.

Re: Help with button to ArrayList

You can put any object into an ArrayList.
Are you sure you want to put the text field object into an array list?
Of do you want to get the String contents of the text field and put that into the array list?

Re: Help with button to ArrayList

Thank you for your link.

Hm actually reading the rest of the assignments, I think that I'm suppose to do is get the String contents of the text field and put that into an array list.
Because the main goal with the assignment is that when I press "Save Post" button it will print out an overview of all the posts with posts, name and date.

And to get that information through a button I need to that option right?

The next thing I will do after this one is that I will change the action on "Save Post" button so all the posts in the ArrayList will be laid out in the text area.