Java - Deprecated method - What to do?
问题 I am following a series of Java tutorials in an attempt to learn it. I have a question about tutorial 72. Link: http://www.youtube.com/watch?v=9z_8yEv7nIc&feature=relmfu At 7:02 of the video, this statement is written. However, this method has been deprecated in Java 1.7. RightList.setListData(LeftList.getSelectedValues()); Eclipse returns the following error: Object[] javax.swing.JList.getSelectedValues() getSelectedValues @Deprecated public Object[] getSelectedValues() Deprecated. As of JDK