Java Example