Sample java code that I have created.