Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2011
    Posts
    2
    Rep Power
    0

    Default Static Methods to Writing a Rhyme

    Hi everyone,
    I am a beginner with coding and one of the many parts of my assignment is to use static methods to write the first seven verses of the nursery rhyme, This is the house that Jack built," that i pasted on here. I have no idea how to write the code. Any help would be greatly appreciated! Thanks so much!

    This is the house that Jack built.

    This is the malt
    That lay in the house that Jack built.

    This is the rat
    That ate the malt
    That lay in the house that Jack built.

    This is the cat
    That killed the rat
    That ate the malt
    That lay in the house that Jack built.

    This is the dog
    That worried the cat
    That killed the rat
    That ate the malt
    That lay in the house that Jack built.

    This is the cow with the crumpled horn
    That tossed the dog
    That worried the cat
    That killed the rat
    That ate the malt
    That lay in the house that Jack built.

    This is the maiden all forlorn
    That milked the cow with the crumpled horn
    That tossed the dog
    That worried the cat
    That killed the rat
    That ate the malt
    That lay in the house that Jack built.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Static Methods to Writing a Rhyme

    Please see my reply to your previous question: read-file-store-array-please-help. These recommendations remain valid. If you're still stuck after doing the recommendations, then please post your code and any specific questions you may have.

Similar Threads

  1. Replies: 8
    Last Post: 04-16-2012, 11:00 PM
  2. Replies: 1
    Last Post: 10-23-2011, 12:37 PM
  3. Static and non static class methods question
    By silverglade in forum New To Java
    Replies: 2
    Last Post: 05-14-2011, 10:10 PM
  4. Recursion with static and non static methods
    By sh4dyPT in forum New To Java
    Replies: 14
    Last Post: 03-27-2009, 06:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •