I have a bit of a problem I was trying to boil down the following code snippet to just onr return statement. I think that I am on the right track.But I keep getting an error that says I am missing a return statement in the beginning part. I am stumped. I would appreciate it if anyone could give me a few hints.
public boolean isTheFirstOneBigger(int num1, int num2){ //this line is where I keep getting missing return
// statement error
while (num1 > num2)
return true;
if (num1 <= num2 == false);
}
}
Thank You
Vincent53
This post has been edited by macosxnerd101: 13 August 2010 - 06:09 PM
Reason for edit:: The end code tag is: [/code], not [end code].

New Topic/Question
Reply




MultiQuote







|