Save text in Textfield to an array
I have a crossword generator project, and the user is going to list in their words in text fields to generate a crossword puzzle from those words. I need to write a proper code to take in the words from the textfields and save them in an array:
-to create a generator
-to check whether the words in the text fields are duplicated or not to give the user an error message.
And then save them to a text field (to make it easier for the user to look at his word when he comes back to the application).
I wrote a code, but it doesnt seem to be appropriate because everytime I try to print the array contents it prints nothing. and Also I am trying I might need help, or a new idea to do it.
I am new to java and not very fimiliar with it.
btw I am using netbeans IDE- Jframe.
Re: Save text in Textfield to an array
Please post an SSCCE - we can only guess what the problem may be, and code provides much more context to help answer questions
I wrote a code, but it doesnt seem to be appropriate because everytime I try to print the array contents it prints nothing