How do you get from Amsterdam to Groningen?

Take a train. Everybody in Holland takes trains for distances like that. There is a train from Amsterdam Central Station every half hour; travel time is 2 hours and 7 minutes. The trains are modern and comfortable, and a one-way ticket costs less than 25 euros. Renting a car will be more expensive, more polluting, and will not get you there any faster.