Hello Steven!
You are missing an important fact. The variables name, name2, msg, age are references to the string. So in the call to JOptionPane.showInputDialog() returns a different reference and you just assign the reference to you're variable. The original "default" keeps the same. HTH Ewald -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en
