Question: Using the code below, determine the value displayed in the dialog box for nAnswer. Note: There are no syntax errors public class Math public static
Using the code below, determine the value displayed in the dialog box for nAnswer. Note: There are no syntax errors public class Math public static void main(String[] args) int nFirstNum = 4: int nSecondNum = 6; int nThird Num = 9: int nAnswer = 0; String strTemp: nAnswer=nThirdNum + nSecondNum / nFirstNum; strTemp = "The answer is " + nAnswer: JOptionPane.showMessageDialog(null, strTemp): 1 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
