A blue passenger train moves southwards at a speed of 120km/hr. Unfortunately as it enters a junction it collides with a brown goods train moving northwards. The collision happened 50 minutes after the goods train takes off. Using a Java program illustrate the answer.

Hello Wilfred, welcome to DaniWeb.

We don't do people's homework for them.
If you have a specific problem with some aspect of Java then we're glad to help, but simply copy/pasting your assignment and waiting for an answer is just insulting.

DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"
http://www.daniweb.com/community/rules

Post what you have done so far and someone will help you from there.

Thanks, the question was submitted in error. I have already done it on my own.

Thanks for the reponse, the question was submitted in error, just needed to verify my answers with the community. I had already done it.

This question has already been answered. Start a new discussion instead.