I have two sqlite databases and want to copy a table from database A to database B. The other tables in database A should not be copied. What is the easiest way to do that i
Why do you want to do that in Java? You can do it directly at the command-line, by dumping your table, and reading it into your other database :
sqlite3 A.sqlite ".dump some_table" | sqlite3 B.sqlite
Open the database you are copying from, then run this code to attach the database you are copying to and then copy a table over.
ATTACH DATABASE 'other.db' AS other;
INSERT INTO other.tbl
SELECT * FROM main.tbl;