Java: added examples