Thursday, October 18, 2007

reflection q 10/16/07

Provide yourself an example (not one from your instructor) of how you use a particular command that
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.


import javax.swing.*;// must be used for user input
s=JOptionPane.showInputDialog("Input a number: ");

these are the import and comands needed to take in user input througgh a pane that will ask the question, input a variable, and hav ok and Cancel buttons

No comments: