Compiling a bunch of stuff in the folder (java, on a mac)
- by David
two questions:
how do i compile a .java file that
isn't on my username (like something
in documents or some other sub
folder)
if i have multiple .java files and i
compile one that contains method that
are contained in the others does the
compiler compile those other files.
heres an example of the second question.
example1.java:
class example1
{
main () {
example2.method () }
}
example2.java:
class example2
{
method ()
}
When i compile example1.java will example2.java also be compiled?