The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Command Line Argument - URGENT!

Hi guys,

this is my question that i need help in:

Write an application that takes as a command line argument a word and outputs
how many character are in the word.
If called with the command line arguments Computing and Freedom would
output:
Computing has 9 characters
Freedom has 7 characters

Re: Command Line Argument - URGENT!

Do not mark your posts as URGENT. Your time constraints are your problem not ours. You are not more important than anyone else seeking help. Many like me refuse to help people who scream URGENT at us, which hinders your chances of getting help not enhancing it.

Re: Command Line Argument - URGENT!

Originally Posted by Junky

Do not mark your posts as URGENT. Your time constraints are your problem not ours. You are not more important than anyone else seeking help. Many like me refuse to help people who scream URGENT at us, which hinders your chances of getting help not enhancing it.

Re: Command Line Argument - URGENT!

Originally Posted by Rads23

then why have an option of urgent if anyone isnt allowed to use it?

What option are you talking about? You just added an annoying all-caps "URGENT" to the title. That's not an option, that's you being obnoxious. Follow that with a homework dump, and I'm surprised you got any help at all. You should be thanking them, not arguing about whether you should or should not be given the option to post annoying titles.

Re: Command Line Argument - URGENT!

Originally Posted by KevinWorkman

What option are you talking about? You just added an annoying all-caps "URGENT" to the title. That's not an option, that's you being obnoxious. Follow that with a homework dump, and I'm surprised you got any help at all. You should be thanking them, not arguing about whether you should or should not be given the option to post annoying titles.

As matter of a fact, i thanked the person who helped me! Dont talk if you dont know.

Re: Command Line Argument - URGENT!

Originally Posted by Rads23

As matter of a fact, i thanked the person who helped me! Dont talk if you dont know.

That's fine, but then you followed up with a confrontational "why let me do this" when all that was said was that marking your threads as urgent annoys people and decreases your chances of getting help- which continuing with "debates" will certainly not fix. Best to say "okay got it", move on, and don't do it in the future.

For more information, see the link in my signature on asking questions the smart way, especially the parts titled "Don't post homework questions", "Don't flag your question as URGENT, even if it is for you", and "Courtesy never hurts, and sometimes helps".