packagecom.roshka.proyectofinal;importjava.sql.Connection;importjava.sql.DriverManager;publicclassDataBase{publicstaticConnectiongetConnection(){Connectioncon=null;try{Class.forName("org.postgresql.Driver");con=DriverManager.getConnection("jdbc:postgresql://localhost:5432/bootcamp_market","postgres","postgres");if(con!=null){System.out.println("---> CONNECTED TO SERVER");}else{System.out.println("---> UNABLE TO CONNECTED TO SERVER");}}catch(Exceptione){e.printStackTrace();System.err.println(e.getClass().getName()+": "+e.getMessage());System.exit(0);}returncon;}}