Answer:
isSelected()
Explanation:
The isSelected() method of a radio button returns true if that button is on and false otherwise. This method is defined in the class javax.swing.AbstractButton. JRadioButton class inherits from AbstractButton and thus has access to this method. An application code can invoke this method on the radio button instance to determine th ecurrent state and alter the control flow accordingly.
Answer:
Here the code is given as follows,
Explanation:
Code:-
import java.util.*;
class Chegg {
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter 5 numbers");
int arr[]=new int[5];
int min;
for(int i=0;i<5;i++)
{
arr[i]=sc.nextInt();
}
min=arr[0];
for(int i=1;i<5;i++)
{
if(arr[i]<min)
{
min=arr[i];
}
}
System.out.println(min);
}
}
A Command is an instruction for a computer to perform a specific task.