My Java Sample code