Menu

(Solved) : Import Javaxswing Class Findpoints Public Static Void Main String Args Int Points 10 20 30 Q44012535 . . .

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 thatrefers to a Class and Level to determine a point value. Completethe JOption command so that the code will determine a point valuebased on the points array.

Expert Answer


Answer to import javax.swing.*; class FindPoints { public static void main(String[] args) { int[][] points = {{10, 20, 30}, {20, 4…

OR