“The best way to prevent war is to be fully prepared for war, and hopefully we never have to use all of this beautiful new powerful equipment but you know you’re less likely to have to use it if you have it. And if a fight must come there is no other alternative: Victory, winning, beautiful words, but that’s what it’s all about.”

He then remarked about staying to shake hands:

As he drew near to the end of his remarks, the president pointed out that he was given the option to leave the commencement ceremony after delivering his speech, or to stay for just the top awardees, or stay to shake the hands of each graduate.

Trump: "I could make this commencement address … and immediately leave and wave goodbye … Or I could stay for hours and shake hands with 1,100 and something. What should I do? What should I do? I'll stay, I'll stay!" pic.twitter.com/qsJ220pnHW

“What should I do? What should I do?” the president asked rhetorically, canvassing the audience.

“I’ll stay, I’ll stay,” the president said, responding to the applause from the audience.

To the @NavalAcademy Class of 2018, I say: We know you are up to the task. We know you will make us proud. We know that glory will be yours. Because you are WINNERS, you are WARRIORS, you are FIGHTERS, you are CHAMPIONS, and YOU will lead us to VICTORY! God Bless the U.S.A.! pic.twitter.com/V9TgEo8MY4

To the @NavalAcademy Class of 2018, I say: We know you are up to the task. We know you will make us proud. We know that glory will be yours. Because you are WINNERS, you are WARRIORS, you are FIGHTERS, you are CHAMPIONS, and YOU will lead us to VICTORY! God Bless the U.S.A.!