21 add snippets for java