Multiple trains. You can take LIRR to Jamaica and transfer to AirTrain. Or take the A subway line. LIRR is faster but still like 45 minutes to either Brooklyn or Manhattan.