Go to the WiFi icon in the menu bar and choose the network you want to join. If prompted, enter the password for the network and your Mac should go online.