Explanation :
Step 1: Take a number from the user by using the Scanner class object.
Step 2: If the given number is < 0 then it is a negative number otherwise, it is a positive number.
Java Code :
//postive or negative
import java.util.Scanner;
pub...