-

2011年8月4日星期四

How would i type the conditional 'or' in Java?

-i need help writing out the 'or' function in java.

For example AND is && and or is the 2 parralel ll. But how would i be able to write it in my program on the computer.



thanksHuh?



You seem to already know the answer: ||



if ( this_is_true || that_is_true )

{ do_something(); }
||

没有评论:

发表评论