Java:Derby: Check if DB exists

Check if Derby DB exists using Java File Class.

static boolean exists(String db) {
		if(db != null)
			return new File(db).exists();
		return false;
	}