Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Java - missing return statement..

Thread Tools

Java - missing return statement..

sweety5236 sweety5236 is offline
Junior Member
Join Date: Apr 2008
Posts: 1
Hi everyone..i'm working on a piece of code..
can anyone tell me what's wrong with the code..

public int move() {
Random generator = new Random();
int num = 1+generator.nextInt(9);

if(thisBoard.getplayer(num) == Board.NO_ONE){
return num;

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Reports - Visual Basic UFL that implements this function is missing (or U2lcom.dll is missing) Les Caudle ASP .Net 3 09-03-2007 02:27 AM
Re: missing feature classes and missing fields Gary Herron Python 2 07-04-2006 10:29 PM
How do java programmers cope with java missing c++ const? Java 26 03-06-2006 09:28 AM
what value does lack of return or empty "return;" return Greenhorn C Programming 15 03-06-2005 08:19 PM
text missing from sql record after return =?Utf-8?B?fm1vc2VzIGJyb3du?= ASP .Net 0 03-06-2004 05:36 PM