My code snippets for core java