declare variable as final
JComboBox bookmarkList;
String[] bookmarks = EmployeeEdit2.getBookmarks();
bookmarkList =new JComboBox(bookmarks);
bookmarkList.addActionListener(new ActionListener(){
publicvoid actionPerformed(ActionEvent e){
String selection = bookmarkList.getSelectedItem();
actionGoToBookmark(selection);
}
});
i am getting this error message when trying to compile this part:
"local variable bookmarkList is accessed from within inner class; needs to be declared final"
how do i declare it final?
thanks

