Rust Java Example