Basic core java programs