how to connect 4 laptops to one monitor
Unless your monitor supports 4 inputs, which most don't, you'll likely need a switch.

Presuming your laptops all have Mini Displayport or Thunderbolt out, this will work.