Java simplify the syntax -


what terse way in java check following condition

int m, n; 

the condition check whether either m or n negative both shouldn't negative. i'm looking terse yet simple syntax

(m < 0) ^ (n < 0) 

note in context, ^ logical xor operator (yes, mean "logical", distinct "bitwise").


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -