Posted on 2004-07-31
Can someone please tell me what I'm doing wrong here.. I wrote this code
static public doctor FindDoctor(String searchname)
for ( int i = 0; i < getnumofdoc(); i++ )
if (darray[i].getname()== searchname)
then I tried testing it with this
else System.out.println("not found jack");
when I ran it I kept getting "not found jack" even whenn it was supposed to be returning "found"
where is the problem?