Page 1 of 1

sigh...

Posted: Thu Aug 21, 2008 8:12 pm
by Fender

Code: Select all

	public boolean isWhiteGlove(){
		boolean result = false;
		if (this.equals(Division.WHITE_GLOVE)){
			result = true;
		}
		return result;
	}

Re: sigh...

Posted: Thu Aug 21, 2008 9:36 pm
by GONNAFISTYA
function EatManCock()
SendMessageToForum (__this__, "FuckingNerd", __this__)
end

CreateInternetNerd (__this__,"EatManCock")

Re: sigh...

Posted: Thu Aug 21, 2008 10:00 pm
by Captain

Code: Select all

      if (this.equals(Division.WHITE_POWER)){
         result = [LOL RACISM];
      }
      return result;
      } else {
         System.out.println("We cool dawg");

Re: sigh...

Posted: Fri Aug 22, 2008 2:13 am
by Fender
Just in case anyone was wondering the "right" way to do it...

Code: Select all

public boolean isWhiteGlove() {
      return this == Division.WHITE_GLOVE;
}

Re: sigh...

Posted: Fri Aug 22, 2008 9:12 am
by Ryoki
goddamn nerds :mad:

Re: sigh...

Posted: Fri Aug 22, 2008 11:48 am
by Fender
goddamn incompetent nerds

Re: sigh...

Posted: Fri Aug 22, 2008 1:47 pm
by Therac-25
Fender wrote:Just in case anyone was wondering the "right" way to do it...

Code: Select all

public boolean isWhiteGlove() {
      return this == Division.WHITE_GLOVE;
}
eh? that does a different thing than the original function. == tests for object identity, .equals() for equality. unless that was the bug.

Re: sigh...

Posted: Fri Aug 22, 2008 2:52 pm
by Fender
The Division object is an Enum, so .equals() and == have the exact same behavior.