Create connection.java

connection java file