fixed formatting of java source files in examples