You don't actually need to wrap "i" in an Integer, as auto-boxing takes care of it.