Return StatementIf the return type of a method is not void, a return statement is required. static boolean integerLarger(int tmpInt, double tmpDbl) {
boolean tmpResult = false; // local variable
if ((double)tmpInt > tmpDbl) {
tmpResult = true;
}
return tmpResult;
}
|