Correct FindBugs in examples. Fix ArrayOutOfBoundsException when m.put has other than 2 arguments.
Merge pull request #1955 from gregrluck/master

Correct FindBugs in examples package