public boolean posNeg(int a, int b, boolean negative) {%0a if (negative) {%0a return (a %26lt; 0 %26amp;%26amp; b %26lt; 0);%0a }%0a else {%0a return ((a %26lt; 0 %26amp;%26amp; b %26gt; 0) || (a %26gt; 0 %26amp;%26amp; b %26lt; 0));%0a }%0a}