/*
* Given 2 int values,
* return true if one is negative and one is positive.
* Except if the parameter "negative" is true,
* then return true only if both are negative.
*
* posNeg(1, -1, false) → true
* posNeg(-1, 1, false) → true
* posNeg(-4, -5, true) → true
*
* Note: your value for this exercise will be different based on your seat
*/
The program name will be PX_PosNeg_Lastname.java.
Click on this link to see the first part of the source code.
Click on this link to see the second part of the source code.
Click on this link to see result that will be similar to yours but not exact.
Click on this link to see what array data you need to use based on your seat number.