Unable to create a proper method for a quadrant checker program
<p>I'm not sure how to exactly use the the public static method with if/else statements that only return a character. The program is supposed to take x,y and return what quadrant the coordinates are located within. (A noob to java!)</p>

<pre><code>import javax.swing.JOptionPane;

public class Assignment13 {

    public static void main(String[] args) {
        String userInputx,
            userInputy;
        double x, y, answer;

        userInputx = JOptionPane.showInputDialog("Please enter your x coordinate.");
        x = Double.parseDouble(userInputx);

        userInputy = JOptionPane.showInputDialog("Please enter your y coordinate.");
        y = Double.parseDouble(userInputy);

        answer = MethodQuad.quadrant(x, y);

        System.out.println("The coordinates " + x + y + "are located Quadrant " + answer);
    }
}

class MethodQuad {

    public static double quadrant(double x, double y) {

        if (x &gt; 0 &amp;&amp; y &gt; 0) {
            return System.out.println("1");
        } else if (x &lt; 0 &amp;&amp; y &gt; 0) {
            return System.out.println("2");
        } else if (x &lt; 0 &amp;&amp; y &lt; 0) {
            return System.out.println("3");
        } else if (x &lt; 0 &amp;&amp; y &gt; 0) {
            return System.out.println("4");
        } else {
            return System.out.println("0");
        }
    }
}
</code></pre>
