I noticed that you didn't have an instance of the ArrayUtilities class in your first project. I don't have a jdk on this computer so I can't test it or I would. But to me that looks like the problem.
You could do something like this:
ArrayUtilities ar = new ArrayUtilites();
ar.resetArray(arrayname);
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
Well, all methods in ArrayUtilities are static so can be called without an instance.
In fact, using a call of one of them on an instance could result in a warning (depending on compiler settings).
Compiling them doesn't give any errors at all here if they're (as they should be) in the same directory.
So it's no problem in the code.
try compiling using javac -classpath . ArrayClient.java and see what happens.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
We used TextPad at school and I hated it.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
And so you've not learned a thing...
You still don't know how to use the compiler for example, which is what was your problem in the first place.
You took the easy way out which was to install an IDE with all its wizzards to do the work for you. Next time you're somewhere where you don't have that option you'll again be lost and come here asking the exact same question all over again.
NOONE should use an IDE unless and until they can do anything it does themselves, you haven't reached that stage yet and now you likely never will.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
And so you've not learned a thing...
You still don't know how to use the compiler for example, which is what was your problem in the first place.
You took the easy way out which was to install an IDE with all its wizzards to do the work for you. Next time you're somewhere where you don't have that option you'll again be lost and come here asking the exact same question all over again.
NOONE should use an IDE unless and until they can do anything it does themselves, you haven't reached that stage yet and now you likely never will.
I don't think he meant it in a bad way. I have to say I agree. I started out learning vb.net and used visual studio.net as an IDE. When I switched to java I was a very lazy programmer because I has such a good IDE to use in vb.net. You would be suprised at how much you learn using the command line to compile and run your programs. Actually, I've got so use to it that I don't like using IDE. I simply like using a good Value Added Text Editor like jEdit to program in.
grifflyn, please don't leave this forum. Jwenting is very smart and good at helping people. It's just sometimes he has a bad way of wording things that sound insulting when their not suppose to be.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
If your a student at school then you probably can't help what they use, and they probably use an IDE like textpad. I have the same problem, but you have to use whatever they tell you too.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
I didn't say you aren't willing to learn, just that you took the easy way out which means you didn't learn anything...
If you'd taken the time to set up your commandline properly (just a few minutes work) you'd have been up and running in no time.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
Glad to hear your staying. I think it would be a good idea to set up the environment variables and stuff like that to use the command line. You'll learn a lot from it. This doesn't mean you have to stay with it forever though. Once you learn how java compiles and runs programs and stuff like that, you can switch back to the IDE. Setting up the environment variables are a trivial thing if you've never done it before. I can help you with this if you like. Also, you said you purchased textpad. You can get free ones off the net that most people like considerably better. But it's all a matter of opinion.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
What about ViM?
http://www.vim.org/
The interface is a little cryptic at first, but it was pretty good syntax highlighting. When I need to do any coding or scripting, I usually fire that up. It works for Mac, Linux, PC, DOS... pretty much any platform you'll encounter.
alc6379
Cookie... That's it
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
VI is excellent. It's my default lightweight editor (not in the least because I do a lot of work remote at customer sites and our own Unix servers where all I have is a terminal window).
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
I think I might have to try it out. I'm stuck on JEdit, so I guess it will be good to try something new.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
Here is my classpath: Note: Your's will probably be different.
.;%classpath%.;.;C\Program Files\Java\jdk1.5.0\lib\tools.jar
classpath should point to the tools.jar file
Here is what my path variable looks like:
C:\Program Files\Java\jdk1.5.0\bin
it just points to the bin folder.
Note: to set your environment variable, right click on the my computer icon, then select advanced, then at the bottom there will be something that says environment variables.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20