FlashCardsProject/build/project/src/jf/flashcards/address/model/FlashCardDatabase.java
/**
	 * creates the connection to the sqlite database 
	 * called in mainApp Start()
	 * @return
	 */
creates the connection to the sqlite database
called in mainApp Start()
@return
creates the connection to the sqlite database called in mainApp Start () @return
public static boolean establishConnection(){
		try {
	         Class.forName("org.sqlite.JDBC");
	         db = DriverManager.getConnection("jdbc:sqlite:flashcards.db");
	         stmt = db.createStatement();
	         return true;
		}
		catch (Exception e) {
			System.err.println( e.getClass().getName() + ": " + e.getMessage());
			return false;
		}
	}
public static boolean establishConnection ( ) { try { Class . forName ( "org.sqlite.JDBC" ) ; db = DriverManager . getConnection ( "jdbc:sqlite:flashcards.db" ) ; stmt = db . createStatement ( ) ; return true ; } catch ( Exception e ) { System . err . println ( e . getClass ( ) . getName ( ) + ": " + e . getMessage ( ) ) ; return false ; } }
creates the connection to the sqlite database
 called in mainApp Start()
 @return
creates the connection to the sqlite database called in mainApp Start () @return
//the database is called flashcards.db