I'm working on a lab assignment that must use one JOptionPane and prompt the user for 4 values and returns a single String value containing these four different values. Once I get the user input I need to convert them to int values.
In my experience with JOptionPane i've always taking one int at a time and i'm not finding much help either in my books or on the internet.
I will also have to validate the user input to insure that each number is within range.
Can anyone help with these two items?

//code snippet (so far)
public static void main( String args[] ) {
inputString = JOptionPane.showInputDialog( " Enter Values-W, X, Y and Z: ");
}// end main