doubt in getting values-- very urgent - please!

hai,

i am creating a java bean ..

public void setTitle_cont(String proj_title_cont[])

{

for(int i=0;i<3;i=i+1)

{

this.proj_title_cont = proj_title_cont;

}

}

public String getTitle_cont()

{//error come here - says "missing return statement"

for(int i=0;i<3;i=i+1)

{

return proj_title_cont;

}

}

setTitle_cont() is working fine..but getTitle_cont() shows error...

can anyone please help out..its very urgent..

thanx in advance

regards

koel

[577 byte] By [koel78] at [2007-9-26 2:26:43]
# 1
Your getter method should be:public String[] getTitle_cont(){return proj_title_cont;}
mattbunch at 2007-6-29 9:40:00 > top of Java-index,Core,Core APIs...