Sonali,
Had a thorough search and could not find a definitive answer. However I feel i have to point out some elimentary mistakes in your code
1)Primitives do not have methods, so you can't call equals() on a char. You have to use ==.
2)The if statement and the switch statement you have...
Hi baldockl,
If you have a look at the end of your methodEquals() declaration line you'll see a semi-colon. Take it out and the program will work.
David
Hi idam,
If you use FileWriter, there is a constructor FileWriter(String fileName, boolean append). If you set append to true, any writes to the file will be appended and will not overwrite the other data.
There is a method inherited from Writer, write(String str) throws IOException, that...
thanks Ben,
those are exactly the problems i'm facing and it's the solution I'm currently using until I find a better one!!!
The good news is that after a hell of a lot of searching i have found a method at http://www.cs.waikato.ac.nz/~ml/weka/doc_gui/weka.experiment.DatabaseUtils.html
it is...
The application i'm programming will eventually have functionality to access different vendors databases, providing different drivers, commands etc which is why I want to find a solution through Java.
I'm writing a database tools application and a portion of my code depends on whether a table exists or not. Is there any test (say returning a boolean) to tell whether this table exists? I've searched the API with no result. Any help, whether a hack or not, would be much appreciated.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.