Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

java program for organising words into a paragraph?

I'm looking for a program where you start with a underscores instead of words in a set text. Then I want to words one by one and have the program insert them into the correct place in the paragraph. Any ideas where I could find one or any tips on how to set about writing one? Cheers

Update:

Serena - that website address is for sale. It doesn't have any information. (Or am I missing something)?

Update 2:

None of these websites work, and directing me to websites anyway is not that useful without additional comments.

Update 3:

Yeah it's a bit like hangman, but instead of being a word and entering letters it's a paragraph of words and you enter the words. The aim is to correctly work out/guess all the words.

4 Answers

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer
  • 1 decade ago

    if I understand you correctly, you want something kind of like Hangman??? You have several lines of underscores, you type a letter and the letters are inserted into the proper index, replacing the underscore at that index? What determines the "game" -- the blank words?

  • Anonymous
    1 decade ago

    So can you not just compare (compareTo()) the entered word to each word in the hidden sentence and if any match then insert it into the blank space?

    Of course you can tweak it more to make sure the user enters word 1 first etc.

  • ?
    Lv 4
    4 years ago

    I propose using a change fact like so... change variety { case:a million { equipment.out.println("One"); }; }; i do no longer application in Java, yet I also have a feeling you may want to characteristic distinctive circumstances and probably freshen up the code slightly! wish I helped!

Still have questions? Get your answers by asking now.