Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, since it is homework, I'll just give a general tip and let you figure the rest. Make each of your operation classes extend Thread. This means they must all implement a "run()" method. I think you can figure out how that applies to what you are aiming for.

I would also suggest that the one thing all of these do is operate on a file, so you may consider this a good thing to pass into the constructor.

For the main method, read the tutorials on basic thread handling. It should be fairly straight forward from there.

peter_budo commented: Nice advice, but I think its to early for threads :) +6
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You will need to use an XML parser to read the files for processing. If you are using J2SE5.0 or above, JAXP provides built-in XML libraries. If you are using earlier versions of Java, you will need to download a parser such as JDOM or Xerces (easily found with Google). If you use JAXP, you can find many tutorials on processing XML in Java at http://java.sun.com/webservices/jaxp/learning/tutorial/index.html

~s.o.s~ commented: Good help to beginners. +20