Create main.java

the main routines to run the java program