Very amateur coder here, 
I'm in the process of making a simple program to tell whether a number is positive, negative, odd or even. So far everything works apart from positive odd numbers, but cant figure out why ? 

Also, how would i loop it ? would i use a for or while loop ?

Thanks 

```
package weekeleven;
import java.util.Scanner;

public class week111 {

    static int number;
    static String pE;
    static String pO;
    static String nE;
    static String nO;
    static String eR;   

public static void main(String[] args) {

    Scanner input = new Scanner(System.in);
        number = -input.nextInt();      
        pE = ("Positive Even");
        pO = ("Positive Odd");
        nE = ("Negative Even");
        nO = ("Negative Odd");
        eR = ("Error"); 

        Object x = null;
        x=getSignAndParity(x);
        System.out.println(x);
}

public static String getSignAndParity(Object x) { 

    if ((number > 0) && (number % 2 == 0)) { //negative and even
        return nE;
    } else if((number < 0) && (number % 2 == 1)) { // positive and odd
        return pO;
    } else if((number < 0) && (number % 2 == 0)) { // positive and even
        return pE;
    } else if((number > 0) && (number % 2 == 1)) { // negative and odd
        return nO;
    } else { // other cases
        return eR;

    }
}
}      

```