Welcome to the Java Programming Forums


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.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: programming hw desperate help!

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default programming hw desperate help!

    So i started it off but it's been a while since i've done this and i need it to pass my class. I'm crazy lost and i have no clue how to finish it. I tried my best but i'm seriously stuck. Can someone please please help me finish it?


    Create a dictionary with postings. The file conisisting of 10 sentences. Each sentence has a unique document number 1 through 10. All words in the sentences in lower case except for the first character of a name. Eliminate all punctuation marks from the sentences. The dictionary and posting should be a sorted singly linked list. Output should be the original sentences and the dictionary with the postings.

    public class Node{
    private String element;
    private Node next;
     
    public Node(String s, Node n) {
    element=s;
    next=n;
    }
     
    public String getElement() {return element;}
     
    public Node getNext() {return next;}
     
    public void setNext(Node newNext) {next=newNext;}
    }
    Last edited by midnightdream13; March 15th, 2011 at 05:11 PM.


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: programming hw desperate help!

    Where are you stuck? What have you tried? What worked, what didn't work? How didn't it work?

    This isn't a homework service. If you're stuck on something specific, then we can help. Break your problem up into smaller pieces, and tackle each piece by itself. Take apart the assignment- write smaller programs that each do one sentence from it, and don't even think about combining them until you have them all working by themselves.

    Recommended reading: Starting Writing a Program
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: programming hw desperate help!

    Please don't post duplicate threads. I deleted your other thread.

    Also, a word to the wise, mentioning your deadline (as you did in your other thread) will only make you look impatient and greedy. There are hundreds of posts here, each with their own urgency and deadline. Presuming that your time is worth more than others will actually decrease your chances of getting help.

    The best way to increase your chances of getting help is to follow the advice I already gave you.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Hi everybody, im new to programming.
    By Sauliux in forum Member Introductions
    Replies: 1
    Last Post: March 5th, 2011, 12:06 PM
  2. [SOLVED] New to Programming
    By Delacratic in forum What's Wrong With My Code?
    Replies: 7
    Last Post: February 8th, 2011, 02:45 PM
  3. What is wrong with this code, please desperate
    By macnasty in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 6th, 2010, 10:26 AM
  4. Is Java Programming Best?
    By messenger in forum Java IDEs
    Replies: 3
    Last Post: May 4th, 2010, 09:11 PM
  5. New to programming
    By Milanocookies56@gmail.com in forum What's Wrong With My Code?
    Replies: 5
    Last Post: March 31st, 2010, 09:55 AM