examples for studying java