What is displayed in the message dialog when the following code is executed? Assume that the following two methods are placed within a class which contains an instance variable, intValue2. This instance variable was initialized to the value 5 when it was declared. The enterJButtonActionPerformed method will execute when one of the class’s JButtons, enterJButton, is clicked.
```
1 private void enterJButtonActionPerformed( ActionEvent )
2 {
3 int intValue1 = 10;
4 int intValue2 = 3;
5 int result = mystery( intValue1 );
6
7 // display output
8 JOptionPane.showMessageDialog( this, String.valueOf( result ),
9 "Mystery Message", JOptionPane.INFORMATION_MESSAGE );
10
11 } // end method enterJButtonActionPerformed
12
13 private int mystery( int inputValue )
14 {
15 return inputValue * intValue2;
16
17 } // end method mystery
```
The text in the message dialog will be set to 50.
You might also like to view...
A(n) ________ character is used to represent one or more unknown characters in a string
Fill in the blank(s) with correct word
Click in the left margin, the selection area, to select the entire line to the right of the pointer
Indicate whether the statement is true or false
A ________ in a PivotTable report is derived from formulas you create, which can include other PivotTable fields
A) row value B) summary statistic C) Value Field Setting D) calculated field
A technician is installing a new laser printer on a workstation that has Windows 7 Professional x86 installed. Which type of printer driver is needed to complete the installation?
A. 16-bit B. 32-bit C. 64-bit D. 86-bit