Display integers in sequential order from smallest to largest in java
<p>Have the user enter 4 positive integers.  Display these integers in sequential order from the smallest to the largest.  For example, if the user enters 4, 14, 2, 7, then you should display 2, 4, 7, 14. this is in java.</p>

<pre><code>package module3p8;

import javax.swing.JOptionPane;

public class M3E8 {

    public static void main(String[] args) {

        String num1Response = JOptionPane.showInputDialog("Enter any postive integer?");
        int number1 = Integer.parseInt(num1Response);

        String num2Response = JOptionPane.showInputDialog("Enter any postive integer?");
        int number2 = Integer.parseInt(num2Response);

        String num3Response = JOptionPane.showInputDialog("Enter any postive integer?");
        int number3 = Integer.parseInt(num1Response);

        String num4Response = JOptionPane.showInputDialog("Enter any postive integer?");
        int number4 = Integer.parseInt(num4Response);

        if (number1 &lt; number2 &amp;&amp; number1 &lt; number3 &amp;&amp; number1 &lt; number4 &amp;&amp; number2 &lt; number3 &amp;&amp; number2 &lt; number4 &amp;&amp; number3 &lt; number4) {
            JOptionPane.showMessageDialog(null, number1 + number2 + number3 + number4);
        } else if (number1 &gt; number2 &amp;&amp; number1 &gt; number3 &amp;&amp; number1 &gt; number4 &amp;&amp; number2 &gt; number3 &amp;&amp; number2 &gt; number4 &amp;&amp; number3 &gt; number4) {
            JOptionPane.showMessageDialog(null, number4 + number3 + number2 + number1);
        } else if (number1 &gt; number2 &amp;&amp; number1 &gt; number3 &amp;&amp; number1 &gt; number4 &amp;&amp; number2 &gt; number3 &amp;&amp; number2 &gt; number4 &amp;&amp; number3 &gt; number4) {
        }
    }
}
</code></pre>

<p>EDIT:  This is homework-related.</p>
