Need help desperately

Hey all, I need some help. i am working on a homework assignment and i am stuck here is the assignment.

Real World Strings Class Problem:

Using the following XML file snipette:

<unit>

<frame>

<begin comment="00:00:00">0</begin>

<end comment="00:01:01.5">221400000</end>

</frame>

</unit>

1. Allow for the input of hours, minutes and seconds in 00:00:00.0 format.

2. Parse out the hours, minutes and seconds and convert to milliseconds.

3. Assuming this is a fine tuning, parse the original "begin" or "end" XML statement and insert the original input (00:00:00.0) as the the value for the comment attribute. Insert the calculated milliseconds as the value between the begin or end tags.

4. Output the answer.

Note: You must be able to differentiate between begin or end tag lines.

Hints:

- 60 minutes (01:00:00.0) in an hour

- 60 seconds (00:01:00.0) in a minute

- 1 millisec = 10000 seconds (00:00:01.0)

- Fractions (00:00:00.1) of a second count.

Refinement: Create an error checking method that will determine if the input string is the correct (00:00:00.0) format.

I got past step one with no problem at all, now i am stuck on step 2 i am just not understanding how to do it i looked in my book and that reall didnt help me much. any help you can give me will be great. here is my code so far.

import javax.swing.JOptionPane;

publicclass RealWorldString{

publicstaticvoid main(String[] args)

{

String input= JOptionPane.showInputDialog("Enter a time in 00:00:00 format" ,"00:00:00");

System.exit(0);

}

}

[2119 byte] By [Deluxa] at [2007-11-26 22:48:24]
# 1
Doesn't the assignment mean you should be taking your input from that text file there? If that's what it means (that isn't entirely clear to me) then you haven't done #1 correctly. You should clarify that by asking your instructor before proceeding any farther.
DrClapa at 2007-7-10 12:08:09 > top of Java-index,Java Essentials,New To Java...
# 2
the XML is just to show us how the input is supposed to be we are not supposed to link it to that file. so step one is right i just know how to step 2.
Deluxa at 2007-7-10 12:08:09 > top of Java-index,Java Essentials,New To Java...
# 3
can anyone help me out
Deluxa at 2007-7-10 12:08:09 > top of Java-index,Java Essentials,New To Java...