modify java snipepts
switch javasnipets with java version