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 2 of 2

Thread: java programming help!

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default java programming help!

    May you guys help me with this problem. Can you guys use not a very complex style of writing this program? Thanks.

    Build a RemoveString class that prompts the user for a sentence and a word to remove.

    (a) Write a method, removeString( sentence, word), that removes the first occurrence of the given string from
    the sentence.

    (b) Write a method, removeAll( sentence, word), that removes all occurrences of word from the sentence. This
    method should call the method you developed in part (a) repeatedly until all occurrences of word are removed.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,302
    Thanks
    56
    Thanked 2,373 Times in 2,344 Posts

    Default Re: java programming help!

    If you need help with the program you are writing, please post the code and ask some questions about the problems.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. android programming vs game programming using java
    By vgoel38 in forum Android Development
    Replies: 4
    Last Post: September 8th, 2012, 06:48 PM
  2. needs help in java programming.
    By ryano in forum Java Theory & Questions
    Replies: 3
    Last Post: December 15th, 2011, 03:03 PM
  3. Replies: 0
    Last Post: December 12th, 2011, 03:17 PM
  4. Is java a power full programming language? can java do this?
    By Jhovarie in forum Java Theory & Questions
    Replies: 5
    Last Post: March 2nd, 2011, 02:02 PM
  5. Please help me with this Java programming
    By simply_stunning79 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: March 12th, 2010, 08:04 AM