What Is Going On Jun 24, 2019 What exactly is going on in this life we live in? I do not know. I haven’t the faintest idea of anything that happens. I simply know I am living here and is that enough? Is that enough to make things work? Is it enough to enable life to be something better than it is? I do not know. I simply don’t have any idea of what is going on. I don’t understand or realize any of it. I wish I did. Yet here we are waiting for something better to come around. Something much much better to have an understanding of. Is that not the end goal of life? To better understand each other and ourselves as much as possible?
Sometimes you need to connect to a database. Here is some code that will allow you to connect to an SQLite database using Java.
public static Connection connect() {
Connection conn = null;
try {
conn = DriverManager.getConnection("jdbc:sqlite:sample.db");
} catch (SQLException sqle) {
sqle.printStackTrace();
Logger.getLogger(SQLite.class.getName()).log(Level.SEVERE, null, sqle);
}
return conn;
}
Comments
Post a Comment