Yeah, you can simply just say.. return (i != 0); aslong as the method type is set to return a boolean ofcourse.
Type: Posts; User: newbie
Yeah, you can simply just say.. return (i != 0); aslong as the method type is set to return a boolean ofcourse.
You can make checkRange() return a boolean instead of an int.. or you can change bool to an int depending on what you're trying to do.
Remember to take while (!bool); into consideration when you...
boolean bool = false;
bool = checkRange(paramArrayOfInt);
bool is a boolean value, but checkRange(int[] i) returns an int.