//This is my code so far. I'm suppose to have the user enter this:
user enters a int between <= 12 then would display this message Howdy youngster
user enters a int between >12 and <20 then would display another message displays You're getting old. etc..
I dont know how to set it up so the number i enter coordinates with the right message.
public class L4_SimpleCalc
{
public static void main (String arg[] )
{
JOptionPane.showMessageDialog(null, "The Old Man says:");
//Read in a value
String enterNum = JOptionPane.showInputDialog(null, "What is your age?:");
//convert string to a number
double num1 = Double.parseDouble(enterNum);
JOptionPane.showMessageDialog(null, "Howdy youngster!");
JOptionPane.showMessageDialog(null, "Howdy, you're on your way!!");
JOptionPane.showMessageDialog(null, "Howdy, you're a mover and a shaker!");
JOptionPane.showMessageDialog(null, "Howdy, old timer!");
}
}