public String[] getTables(){
try{
DatabaseMetaData dbMeta=con.getMetaData();
String[] tableNames=dbMeta.getTables(null, null, "%", "TABLE");
}
catch(Exception e){
errMsg="Error:"+e.toString();
}
}
I am getting an error on the getTables() line as it is saying I have incompatible types, String[] !=String.
There must be something small which I am missing, but I am unable to find something to help me in the java documentation. Any ideas?
This post has been edited by ryanand88: 05 September 2009 - 10:58 PM

New Topic/Question
Reply



MultiQuote


|