Ok, so I\'m attempting to do an exercise from a book I\'m using to learn Java. Here is the code that I have so far:
import javax.swing.*; import java.awt.Gri
If I understand your problem, you need the loop to instantiate and store the JButtons.
for (int i=0; i<10; i++) { numButton[i] = new JButton(String.valueOf(i)); }
You need to convert the loop control variable into a String argument for the JButton constructor.