Hi low,
We have a method to get th column count it is as follows:
//ResultSetMetaData is an interface which have the info
//the tabe name , no columns ,column names etc
ResultSetMetaData resMetaData = res.getMetaData();
//Now use resMetaData for your work as,say column count
int...