Some java programs