Simple java programs