Essay
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 the JOption command so that the code will determine a point value based on the points array.
Correct Answer:

Verified
JOption.showMessageD...View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Correct Answer:
Verified
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q25: Match each term with the correct statement
Q26: What is the advantage of declaring an
Q27: Regarding enumerations, the _ method returns an
Q28: Regarding enumerations, the _ method returns the
Q29: The ArrayList class _ method removes an
Q31: Match each term with the correct statement
Q32: Write the statement to declare an ArrayList
Q33: The bubble sort is the fastest and
Q34: In a(n) _, you repeatedly compare pairs
Q35: Match each term with the correct statement