Good advice .... You will have various bathroom breaks, etc. between classes .... Pack some bars or shakes and slam them when you get the opportunity
I've been thru 3 full academies plus military .. If need be I've trained late at night just to get it in, as I wasn't gonna let them "keep me down" with their cardio/ calisthenic bullshit .... Lol
You can do anything you set your mind to ... I agree that doing well and graduating is priority #1 (your reputation starts here), but if lifting is important to you, you can find a way. The last course I went to was a grueling 8 week tactical deal - 10-12 hours a day in full gear (40+ pounds), lots of PT, and I was 38 friggin' years old. Still trained almost every night, and if I missed a session here or there from fatigue, I made it up on the weekend.
The body is way more capable than most people realize. I tried to look at it as getting paid to do cardio (in training), then got my "real" workout later.
Best of luck man!!! It's an adventure .....