Hand written main class

hand written java main routine.