... // related switch statement in updateProf() // choice is of type int switch ( menuChoice ) { case 'A': strLastName = handleAddToListAux( "last name" ); // get prof's new last name replaceItem(strLastName, choice);//profIterator->setLastName( strLastName ); System.out.println("\n Professor update completed. 'P' to print."); break; ..... // error -bash-3.00$ javac *java JavaLinkedListDemo.java:307: cannot find symbol symbol : method replaceItem(java.lang.String,int) location: class JavaLinkedListDemo.JavaLinkedListDemo replaceItem(strLastName, choice);//profIterator->setLastName( strLastName ); ^ 1 error