Basic Java code sample