Correct the Java syntax in the sample code
Merge pull request #660 from RainoBoy97/patch-1

Correct the Java syntax in the sample code