so i have my main program which reads in a data file through the command line, and the data file is a list of names, each line consists of "last name first name" (no quotes obviously) all i want to do is print out the list of names as "first name last name" instead of "last name first name" ex: change "Doe John", to " John Doe". im at the point now where my output is the list of names, so any suggestions?

Recommended Answers

All 3 Replies

Could we see what you have so far...

Member Avatar for manutm

I don't mean to be rude but I can't see what's so difficult as you definitly can't do it yourself. Programming is all about finding (by yourself) solutions to problems, not asking other people to do the job for you. You will learn absolutly nothing doing this. But, in case you're really stuck, post your code first then somebody will be happy to help you.

manutm i agree... will post code tomorrow if necessary....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.