The program must simply ask the user to type in a text since a text is a list of words separated by spaces.

i need it..its really urgent..thanks..

Comments
Not urgent to anyone else. You need to do your own homework.

i want to do much more with the program...and thats all i need help with..once i have that i can go ahead and finish the work...
if you dont want to help..no one is forcing you to...=)

peace...

Edited 5 Years Ago by lashbandi: n/a

If you can't write a program that asks the user to enter text on your own. Then you will not be able to 'do much more' on your own either. Either attempt it by yourself first and post any problems you are having or don't post at all. (No rudeness intended)

Comments
Sounds reasonable to me.

The program must simply ask the user to type in a text since a text is a list of words separated by spaces.

.. since a text is a list of words separated by spaces.
well ... duh

so, if there weren't any spaces in there, the program wouldn't have to ask the user for input? how does the program know whether or not the user intends to enter spaces?

I don't need it, so, for me it isn't urgent. but, I must say, I was pleasantly surprised by your post. at least you weren't asking us to write it for you. but I do can understand how you, as a starting developer, can get frustrated by o so cruel deadlines, and that you want to share your frustrations with us.

well, you have my support, and I'm totally convinced you will be able to find the knowledge to write this master piece of code you're so desperately searching your mind for.

The program must simply ask the user to type in a text

Well, if that's all you need, it's easy enough:

public class TooLazyForWords
{
  public static void main(String[] args)
  {
    System.out.println("Please type in a list of words separated by spaces");
  }
}

There you go. Requirements met, as specified. No need to thank me.

Now you can do much more with the program... like, for example, accept the user's input and maybe process it in some fashion.

Edited 5 Years Ago by jon.kiparsky: n/a

Comments
Great!
This article has been dead for over six months. Start a new discussion instead.