examples of java code