So far I have been able to compile my Java programs in Linux using javac command in Terminal, but soon I'll need to compile a program that has two or three classes in it along with main and I'm not sure how this will work.
Can I still use javac command for this?
Yes, just do javac *.java (if all your classes are in the default package).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With