private int find(String name){
for(int i = 0; i < this.size; i++)
{
if(
name.equals
(this.theDirectory[i],getName()))
{
}
}
}
And I have:
public String lookUpEntry(String name) {
if name found{
getNumber = return;
}
else{
return null;
}
}
The pseudo code I was given was:
use find to locate position of entry if entry is found use getNumber to return the telno else return null
I am aware that I need to find method before doing the lookUpEntry method. There are a few errors within the code and I'm unsure why this is so

New Topic/Question
Reply


MultiQuote






|