import javax.swing.*;class FindPoints{   public static void main(String[] args)   {      int[][] points =
     {{10, 20, 30},      {20, 40, 60},      {40, 60, 80}};      String prompt;      int class;      int level;      prompt = JOptionPane.showInputDialog(null, "Class: ");      class = Integer.parseInt(prompt);      prompt = JOptionPane.showInputDialog(null, "Level: ");      level = Integer.parseInt(prompt);
      JOption.showMessageDialog(null, "Your points: " + ---complete code here-----);
   }}The above code depicts a two-dimensional array named points that refers to a Class and Level to determine a point value. Complete theJOptioncommand so that the code will determine a point value based on thepointsarray.

What will be an ideal response?


JOption.showMessageDialog(null, "Your points: " + points[class][level]);

Computer Science & Information Technology

You might also like to view...

What would the browser display if it executed the following script?

``` ``` a) Nothing, the script would generate an error. b) 1 c) 5 d) 10

Computer Science & Information Technology

When converting from prefix to postfix, we begin parsing at the left and work right until we isolate one binary expression.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Unlike the sentinel-controlled loop, the variable used with a state-controlled loop differs from the variable used to store the data that is being processed.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Mention some of the major goals every company has.?

What will be an ideal response?

Computer Science & Information Technology