Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+11 votes

How do you create a connection between java and a database and then call that connection/implement it into other classes? Currently our entire project is in one class and it is extremely cluttered and hard to read through. If we were to have the connection code in a separate class, what is the best way to access said connection?

asked in CSC305 Fall 2019 by (8 points)

2 Answers

0 votes

Locate the database you want to access. include the JDBC library.

answered by (8 points)
0 votes

make sure the JDBC drive is on your calsspath.

answered by (8 points)
...