JTextArea ArrayList string data and JTextField input data not matching
问题 so I am trying to have my program read a list of lines from a txt file. This is then displayed in a JTextArea. The user can input data using the JTextField and the goal is to display "Hooray" if the user matches the text in the JArea and "Wrong!" if they do not. Any help is appreciated. public class TextArea1 { JTextArea text; JFrame frame; JTextField textField; public int k; public ArrayList aList; public String correctAnswer; public static void main(String[] args) { TextArea1 gui = new