core java sample program