jakkusto
03-23-2008, 09:24 PM
I'm trying to call a method that I made in one class (exampleA.java) and use it in another class (exampleB.java); they're basically two seperate, multilple-method programs. However, when I type this into exampleB.java:
System.out.println(exampleA.min(argument1, argument2) );
and try to compile, I get a compiler error that says it can't find the variable (exampleA.min(argument1, argument2) symbol, even though it's in the other program, which is complete. The only thing I can think of right now that would maybe cause a problem is that I have these programs saved in the F drive of my HD, and the bulk of Java is on the C drive. Also, I have my IDE saved in the F drive in a seperate folder from the programs. Any suggestions on how to get this to work successfully? Thanks in advance.
System.out.println(exampleA.min(argument1, argument2) );
and try to compile, I get a compiler error that says it can't find the variable (exampleA.min(argument1, argument2) symbol, even though it's in the other program, which is complete. The only thing I can think of right now that would maybe cause a problem is that I have these programs saved in the F drive of my HD, and the bulk of Java is on the C drive. Also, I have my IDE saved in the F drive in a seperate folder from the programs. Any suggestions on how to get this to work successfully? Thanks in advance.