Update java example

Java example is taken from Java guides. If accepted in this way we can get rid off Java/Memcachier guide.