I'm new to programming in Java. I have a SQL connection class that connects to my database.
I got my code reviewed by my mentor and he asked me to "Externalize strings using properties file". I am not sure what he means by this and how to go about doing this.
I researched this online and found articles about eclipse wizard and internationalization. This has left me more confused.I'm not sure if I should follow it.
My SQL Connection class looks like this.
public class SQLConnection {
Connection conn = null;
public static Connection dbConnector() {
try {
Class.forName("org.sqlite.JDBC");
Connection conn = DriverManager.getConnection("jdbc:sqlite:xxxdbnamexxx.db");
return conn;
}catch(Exception e){
JOptionPane.showMessageDialog(null, e);
return null;
}
}
}
I expect connection class to return connections like it usually does after the externalization of the strings.
I use Eclipse IDE if that helps.