Updated program.java

Changed the way connection settings initialised.