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...
Data on a standard CD is recorded ________
A) magnetically B) as tiny bumps or flats into the CD C) on the protective layer D) in concentric circles
Computer Science & Information Technology
An application server acts as a repository for application software.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology