Presumably you mean mechnical engineering major.
That being the case, learn C for programming microcontrollers and embedded systems--not C++, not Java. Just simple plain old C.
If not that, Javascript, because it's everywhere and you can play with it in your browser.