Is there a Java equivalent for Python's map function?,"[1, 2, 3]"