store data in a String array getting from access table
Hai all,
i an new to java.
i have a problem regarding database connectivity, in my bean class i have written code to retrieving data from a access table. It is successfully retrieving data as System.out.println(rs.getString(rows)) is working fine but i want to store the data in String array
My code is like follows
String[ ] listTitle;
rs.next();
for(int i;i<8;i++)
{
rows="F"+i;
System.out.println(rs.getString(rows));
listTitle[i]=rs.getString(rows);
}
when control coming to
listTitle=rs.getString(rows);
it is giving some error like::::No data found.
how to solve this any one?

