Add C and Java snippets