Same code that was in this
thread https://coderanch.com/t/511880/java/java/Head-First-Java-QuizCardBuilder-not
Sorry, the sheriff moved my reply from that thread to this new one ...
here is a snippet of the code that matters, and my two questions.
1.It gets text from a JTextArea field, but before it adds the new 'card' object to the 'cardList' ArrayList, I want to make sure that question.getText() and answer.getText() actually have some data to save.
2.As an extra precaution I might like to filter the array before saving it to a file...
Say I have an ArrayList of 'card' objects, each object has two instance variables that are strings. I need to go through the array and remove any objects where the two instance variables do not contain any strings in the variables.
thanks for any help you can give
-Dugie