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: How to find Standalon word in the string

  1. #1
    Junior Member
    Join Date
    Aug 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to find Standalon word in the string

    hi ,

    i have TWO String like- 1 " ABCD ABC_BDEABC_ABC "
    2 " ABCD BDEABC_"
    I WANT to pick only ABC that is standalone but i m unable to find i used contains() method but it also fetch 2 STRING WELL ALONG WITH FIRST.

    THANKS AND REGARDS
    Shailendra Shukla


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    4,359
    My Mood
    Mellow
    Thanks
    143
    Thanked 598 Times in 585 Posts

    Default Re: How to find Standalon word in the string

    What do you mean by "standalone?" If you can answer that, you should be able to modify your code to look for only the characteristics of the "standalone" sequence of characters.

  3. #3
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 262 Times in 231 Posts

    Default Re: How to find Standalon word in the string

    The String class has many methods which would provide more than one way to achieve the goal.

Similar Threads

  1. Finding a word within a string (using a stringbuilder)
    By getaway in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 9th, 2013, 10:20 AM
  2. How to Determine if a String is a Word or Number?
    By megnog in forum Java Theory & Questions
    Replies: 18
    Last Post: April 19th, 2012, 04:31 PM
  3. Traverse through the one String and find it contains the other String
    By entwicklerin in forum Loops & Control Statements
    Replies: 9
    Last Post: January 17th, 2012, 12:42 PM
  4. How to invert a word String
    By Truffy in forum Java Programming Tutorials
    Replies: 16
    Last Post: October 3rd, 2009, 02:44 AM
  5. How to invert a word String
    By Truffy in forum Java Code Snippets and Tutorials
    Replies: 16
    Last Post: October 3rd, 2009, 02:44 AM