Answer:
Following is attached the solution for all parts. I hope it will help you!
Explanation:
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.
for (int x=0; x<=10; x++) {}
This will loop 11 times as it begins at zero and loops all the way up to and including ten. 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.