(java.lang.String) cannot be applied to (java.lang.Object)
问题 Ive a Listner class called TopicS Im trying to call it from a gui called readMessages When Im trying to run the class TopicS using the following method, private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { System.out.println("test test test"); System.out.print("you pressed" +topicCombobox.getSelectedItem()); TopicS a = new TopicS(); a.addTopicToListner(topicCombobox.getSelectedItem()); } It gives me error saying addTopicListner(java.lang.String) in Topics Cannot be applied