var loc1 = new Vector3(locX, locY, locZ);
var loc2 = new Vector3(locX2, locY2, locZ2);
var locations = new Vector3[] { loc1, loc2 };
There are lots of collection types and lots of ways to work with them. If you don’t know how to create a basic array or even what a Vector3 is then I would highly recommend you start reading some beginner materials and read the Unity documentation.