I am creating an Twitter App using NetBeans and i see an missing return statement error and im just a beginning developer so i dont know what to to whit this error. So i thought you can help me whit this error:
private String arrayToString(char[] arr)
{ <----- here is the missing return statement error
StringBuffer result = new StringBuffer();
for(int i=0;i<arr.length;i++)
{
result.append(arr[i]);
return result.toString();
}
}
}
ErrorNaveen Kumar March 31, 2011 at 11:54 AM
HI It is clear that you are not returning any value. The method operation() should return an integer.
Help!!!!!René Verbunt January 6, 2012 at 12:03 AM
I am creating an Twitter App using NetBeans and i see an missing return statement error and im just a beginning developer so i dont know what to to whit this error. So i thought you can help me whit this error: private String arrayToString(char[] arr) { <----- here is the missing return statement error StringBuffer result = new StringBuffer(); for(int i=0;i<arr.length;i++) { result.append(arr[i]); return result.toString(); } } }
Thankk youu =)sk8terboi87 January 9, 2012 at 11:35 AM
I reallly 'not so java' guy... it really helped me out.. thankk you!! )
Post your Comment