Correct FindBugs in examples package

Also . Fixed ArrayOutOfBoundsException when m.put has other than 2 arguments.