Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2014
    Rep Power

    Default Unique method to search a character in a string

    Hi Friends,

    Can anyone say which string method to search a particular character in a string whether a particular character is there or not . Suppose my String is like............

    String s = "Java.";

    How I can find the character " . " in above string "Java." is present or not . What is the string method to search that "."
    Last edited by BimalChandraMalik; 10-14-2014 at 06:05 PM.

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Northern Virginia, United States
    Rep Power

    Default Re: Unique method to search a character in a string

    Check out the methods in the String class in the JDK documentation. It's all there.

    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. Replies: 4
    Last Post: 09-26-2013, 11:35 AM
  2. Set not working '-' as unique string
    By smritigarg in forum Java 2D
    Replies: 1
    Last Post: 01-14-2011, 09:49 AM
  3. Binary search tree search method
    By chopo1980 in forum New To Java
    Replies: 2
    Last Post: 12-10-2009, 01:42 AM
  4. Unique Filter on search results
    By selva in forum Lucene
    Replies: 0
    Last Post: 02-17-2009, 07:32 AM
  5. Replies: 0
    Last Post: 11-20-2007, 04:59 PM

Posting Permissions

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