Add Array to multiple objects
You can copy the modifiers from the active object to the selected objects with &#9096; CtrlL> Modifiers, or you can join all the cylinders into one object with &#9096; CtrlJ.

In this case I would probably join them.