Which of the following statements would store input in name?

A. name =
   JOptionPane.showInputDialog("Enter your name and press OK");
B. name =
  JOptionPane.showMessageDialog("Enter your name and press OK",
                          JOptionPane.PLAIN_MESSAGE, null);
C. name = System.in();
D. name = JOptionPane.input("Enter your name and press OK");


Answer: A

Computer Science & Information Technology

You might also like to view...

Match the following parts of the Computer window to their function:

I title bar II. address bar III. Back button IV. navigation pane V. command bar A. part of a folder window that displays the folder structure in a vertical list B. allows one to navigate to a folder that has already been opened C. displays your current location in the folder structure D. contains the minimize, maximize/restore down, and close buttons E. provides buttons to perform common tasks

Computer Science & Information Technology

A(n) ________ is an assignment of time for which you do not have to schedule resources such as rooms

Fill in the blank(s) with correct word

Computer Science & Information Technology

Specter can be used to simulate which of the following services?

a. SMTP b. FTP c. HTTP d. All the above

Computer Science & Information Technology

Which function returns the standard deviation of a population including logical values and text?

A. STDEVA B. STDEV.P C. STDEVPA D. STDEV.S

Computer Science & Information Technology