Hi pavan, in the first posted example, the array is declared with: JButton[] dbBut= new JButton[2];
This gives the array two(2) slots, numbered 0 and 1. Then in the loop: for...