Java: erro conexão MySQL?

Galera estou fazendo uma conexao java para mysql, aparece esse erro: Erro: o método main não foi encontrado na classe AcessoBanco; defina o método main como: public static void main(String[] args) ou uma classe de aplicativo JavaFX deve expandir javaf

import java.beans.Statement;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.DriverManager;
	

public class AcessoBanco {

	private Connection connection = null;
    private Statement statement = null;
    private ResultSet resultset = null;	 	   
    public void conectar(){
       	String url = "jdbc:mysql://localhost:3306/Agenda"; 
    	String usuario = "root";
    	String senha = " ";
    		    
    try{
        Class.forName("com.mysql.jdbc.Driver");
        this.connection = DriverManager.getConnection(url, usuario, senha );
        this.statement = (Statement) this.connection.createStatement();
     } catch (SQLException e){
     
        System.out.println("erro:" + e.getMessage());
       
        } catch (ClassNotFoundException e) {
		
		e.printStackTrace();
	   }
 
}
  

    public boolean estaConectado() {
        if (this.connection != null ){
            return true;
        } else {
            return false;
        
   }
} 	 	      


public void listarContatos() {	            
        try{
            String query = "SELECT * FROM contatos ORDER BY nome";
            this.resultset = ((java.sql.Statement) this.statement).executeQuery(query);
            while (this.resultset.next()){
System.out.println ("ID: " + this.resultset.getString("id") + " - Nome: " + this.resultset.getString("nome") + " - Telefone: " + this.resultset.getString("telefone") + " - Email: " + this.resultset.getString("email") + " - Endereco: " + this.resultset.getString("endereco") +"" );
              }
        } catch (Exception e){
            System.out.println("Erro:" + e.getMessage());
           
            }
        }
public void inserircontatos(String nome, String telefone, String endereco, String email){
    try{
        String query = "INSERT INTO contatos (nome, telefone, endereco, email) VALUES (' " + nome + "', '" + telefone + "', '"+ endereco +"','" + email + "');";
        System.out.println(query); 
        ((java.sql.Statement) this.statement).executeUpdate(query);
    }catch (Exception e){
        System.out.println("erro:" + e.getMessage());
       
    }
}	

	public void desconectar() {
	
	
      }

    public Connection getConnection() {
  return connection;
}

public void setConnection(Connection connection) {
  this.connection = connection;
}

public Statement getStatement() {
  return statement;
}

public void setStatement(Statement statement) {
  this.statement = statement;
}

public ResultSet getResultset() {
  return resultset;
}

public void setResultset(ResultSet resultset) {
  this.resultset = resultset;
 }
}

Você não criou o método main. Crie-o e coloque o método conectar() nele

Caso você queira executar essa classe “AcessoBanco” diretamente, você deve criar o método main (para que essa classe seja “executável”), e dentro desse método main você realiza as operações desejadas como conectar, verificar conexão, listar/inserir contatos, etc.

Thu Apr 20 23:21:02 GFT 2017 WARN: Establishing SSL connection without server’s identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn’t set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to ‘false’. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
erro:Access denied for user ‘root’@‘localhost’ (using password: NO)

Thu Apr 20 23:25:07 GFT 2017 WARN: Establishing SSL connection without server’s identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn’t set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to ‘false’. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
erro:Access denied for user ‘root’@‘localhost’ (using password: YES)

Esse erro está informando que o acesso foi negado… Sua senha é um espaço em branco ou vazia?

Porque você definiu assim: String senha = " "; // Um espaço em branco

Se for vazia, tem que definir assim: String senha = “”;