for core java program