Some java programms