Can anybody tell me what is wrong into this code.
ERROR: Incompatible Type
Found : java.lang.Object
Required: java.lang.String
error occur at (iRow
////////////////
private void insertLedgerBalance(int iRow)
{
try{
if (optReceipts.isSelected())
{
String atCode = tbl_PettyReceipt.getValueAt(iRow, 0);
String atAmount = tbl_PettyReceipt.getValueAt(iRow, 3);
}
else if(optDeduction.isSelected())
{
for (int a = 0; a < tbl_PettyReceipt.getRowCount(); a++)
{
String atCode = tbl_PettyReceipt.getValueAt(iRow, 0);
String atAmount = tbl_PettyReceipt.getValueAt(iRow, 3);
}
}
}
catch(Exception e){
System.out.println(e);
}
}