For the car, I'd save up and just get a nicer one later. One of the best ways to save money is to not spend on your car....
For credit, get a card with a low credit limit. Also try getting a subsidized federal Stafford loan or something. The subsidized is where you don't start paying until after graduation and interest doesn't accrue until after graduation. The subsidized ones aren't too bad, you don't have to pay till after graduation but interest accrues before you start paying, iirc. Just get a small loan that you know you can pay off quickly and
pay it off quickly. Having a loan history is good. Having good credit card history is also good. Just use it to buy gas every now and then and then pay the bill immediately when it arrives.
Just be mindful of your credit score which is composed of how much you make, your credit history, and how much credit you have. Too much credit vs. not enough income hurts your credit score. Too much income vs. not enough credit supposedly also hurts it. Each time your credit is checked it goes down too.....so don't go applying for 50 loans and/or cards just to get 1 or 2.....
Good luck!
b