Write a Java program that prompts for an individual’s age and prompts him/her to pay the price
of a train ticket based on the following conditions:
If age is greater or equal to 12 but less than 65, Rs 375.75 is charged.
If age is less than 12 but greater or equal to 65, Rs 150.25 is charged.

Help me please.

help you with what? cheat on your school assignment?
I'll give you the best help anybody can give you here: pick up your textbook or class notes, study them and do the work.

also: if you want to copy paste assignments, make sure you understand them, or you know how to copy-paste:

If age is less than 12 but greater or equal to 65,

do you understand why that is completely impossible?

Comments
lol, love the quote and response to it!

You just copy/pasted your assignment without even a moment taken to explain what help you need. That's highly disrepestectful to the many people who give their time to help others here.

There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in helping you cheat or doing your homework for you.

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.

you just use JOptionPane for prompting message and give if else conditionsacc to ur inputs

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