Java example added.