jdcb derby creation error
I am trying to create a simple database for a class assignment and stuck on the database creation, although I think my code looks correct. Can someone please look at this method and tell me where I'm dropping the ball.

       private void makeDatabase()  
       {
	   try 
		{
			
			Class.forName(driver).newInstance();
			Connection con = DriverManager.getConnection("jdbc:derby:ContactDB;create=true");
			Statement statement = con.createStatement();
			 sql = "CREATE TABLE ContactDB(fname varchar(25), lname varchar(25), email varchar(25), phone varchar(25))";
			ResultSet rs = statement.executeQuery(sql);
			con.close();
		} 
		catch (Exception err) 
		{
		
		}   
      }

thanks in advance and any advise appreciated.
jdcb derby creation error
===

I am trying to create a simple database for a class assignment and stuck on the database creation, although I think my code looks correct. Can someone please look at this method and tell me where I'm dropping the ball.

       private void makeDatabase()  
       {
	   try 
		{
			
			Class.forName(driver).newInstance();
			Connection con = DriverManager.getConnection("jdbc:derby:ContactDB;create=true");
			Statement statement = con.createStatement();
			 sql = "CREATE TABLE ContactDB(fname varchar(25), lname varchar(25), email varchar(25), phone varchar(25))";
			ResultSet rs = statement.executeQuery(sql);
			con.close();
		} 
		catch (Exception err) 
		{
		
		}   
      }

thanks in advance and any advise appreciated.