some programs in language- java