@@ -0,0 +1,744 @@
+package io.avengers.dao;%0D%0A%0D%0Aimport java.sql.Connection;%0D%0Aimport java.sql.DriverManager;%0D%0Aimport java.sql.SQLException;%0D%0A%0D%0Apublic class MarvelDAO %7B%0D%0A%0D%0A%09static Class c;%0D%0A%09%0D%0A%09public MarvelDAO() %7B%0D%0A%09%09if (c == null) %7B%0D%0A%09%09%09try %7B%0D%0A%09%09%09%09c = Class.forName(%22com.mysql.jdbc.Driver%22);%0D%0A%09%09%09%7D catch (ClassNotFoundException e) %7B%0D%0A%09%09%09%09throw new IllegalStateException(%22SQL driver is not here: %22 + e.getMessage());%0D%0A%09%09%09%7D%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%09%0D%0A%09Connection connectToMySQL() %7B%0D%0A%09%09Connection connect;%0D%0A%09%09try %7B%0D%0A%09%09%09connect = DriverManager.getConnection(%22jdbc:mysql://localhost:3306/marvel%22, %22root%22, %22%22);%0D%0A%09%09%09return connect;%0D%0A%09%09%7D catch (SQLException e) %7B%0D%0A%09%09%09throw new IllegalStateException(%22Wrong credentials or url, or overloaded connection: %22 + e.getMessage());%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%7D%0D%0A

ADD MarvelDAO