| | |
Missing } return statement
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
missing return statement means that your method expects you to return a value. for example :
if your method does not return a value its signature need to be like this:
Java Syntax (Toggle Plain Text)
int add(int x, int y) { return x+y; }
if your method does not return a value its signature need to be like this:
Java Syntax (Toggle Plain Text)
void foo() { // some code here }
![]() |
Similar Threads
- missing return statement (Java)
- Missing return Statement (Java)
- missing return statement (Java)
- missing return statement (Java)
- missing return statement 106 and 123, any ideas?? (Java)
Other Threads in the Java Forum
- Previous Thread: print from doubly linked list
- Next Thread: J2ME mp3 player for motorola mobile phone
Views: 637 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for Java
-xlint android animated api apple applet application arguments array arrays automation binary blackberry block bluetooth chat class classes client code component database developmenthelp draw eclipse encode error event exception file fractal game gameprogramming givemetehcodez graphics gui helpwithhomework html ide image input integer iphone j2me j2seprojects java javac javaprojects jmf jni jpanel julia lego linux list loop loops mac map method methods mobile netbeans newbie notdisplaying number object online oracle print problem program programming project recursion scanner screen server set singleton size sms socket sort sql string swing system template test textfields threads time title transfer tree tutorial-sample update windows working






