FlashCardsProject/build/project/src/jf/flashcards/address/model/FlashCardDatabase.java
/**
	 * private method, called when a new flash card stack is added which creates 
	 * a new table under the same name 
	 * 
	 * @param newStack
	 */
private method, called when a new flash card stack is added which creates
a new table under the same name

@param newStack
private method called when a new flash card stack is added which creates a new table under the same name @param newStack
private static void newFlashCardStackTable(String newStack) {
		try {
			String addStackQuery = "CREATE TABLE IF NOT EXISTS  " + newStack.toLowerCase() 
								+ "(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "
								+ "front TEXT NOT NULL, "
								+ "back  TEXT NOT NULL) ";
			 stmt.executeUpdate(addStackQuery);	
			}
		catch(Exception e)
		{
			System.err.println( e.getClass().getName() + ": " + e.getMessage() );
		}
	}
private static void newFlashCardStackTable ( String newStack ) { try { String addStackQuery = "CREATE TABLE IF NOT EXISTS  " + newStack . toLowerCase ( ) + "(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, " + "front TEXT NOT NULL, " + "back  TEXT NOT NULL) " ; stmt . executeUpdate ( addStackQuery ) ; } catch ( Exception e ) { System . err . println ( e . getClass ( ) . getName ( ) + ": " + e . getMessage ( ) ) ; } }
private method, called when a new flash card stack is added which creates
 a new table under the same name
private method called when a new flash card stack is added which creates a new table under the same name