Sampel java code that I have created.