Hello guys!
this is the best forum for Java, and you guys are the best!
now >>> the question...
i mdae a method, and a for loop inside the method:
this is the example of the code, when i try to compile this application i have error: "missing return statement"....
so i guess i have to write the return statement after the for loop, but than it wouldn't be the same (and it would not consider my IF condition) ! please help me!
this is the best forum for Java, and you guys are the best!
now >>> the question...
i mdae a method, and a for loop inside the method:
Code:
public String go(String width)
{
for(i=0; i< 300; i++)
{
if(blablabla)
{return "a";}
}
}
so i guess i have to write the return statement after the for loop, but than it wouldn't be the same (and it would not consider my IF condition) ! please help me!
Comment