Tutorial samples for Java