my sample java code