×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Pune
    Posts
    223

    Comparing String From Reverse

    HI ALL,
    Is there any function available in j2me that compares two strings from reverse upto a particular character and return 0 if two strings are matches.
    Please help me ASAP....
    Thanx..

  2. #2
    Wiki Moderators
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,779

    Re: Comparing String From Reverse

    Hi Devdattac,

    I am not sure if a conventional function for your requirement is avaible.

    However you can create your own function, I had seen a reverse() function somewhere and equals() function which could be used in your custom function.

    Best of Luck,
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  3. #3
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Pune
    Posts
    223

    Re: Comparing String From Reverse

    Thanx 4 reply........

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: Comparing String From Reverse

    Hi,
    I think for this you have to code you own methods..

    Approach can be that first get the reverse string of the string of string you wana search and then go through that string using another method search().

    Hope idea can help you..
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  5. #5
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: Comparing String From Reverse

    Use the following Method.


    You have a length of string by lenghth(). Then use the following function in for loop. Decrement index one by one and concat that character so you will get reverse String.

    public native char charAt(int index);

  6. #6
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Pune
    Posts
    223

    Re: Comparing String From Reverse

    Thanx 4 reply .....

  7. #7
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: Comparing String From Reverse

    You are alwasys welcome

Similar Threads

  1. Send string data from symbian to .net
    By ahlmans in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2008-01-16, 13:40
  2. How to use Gauge/Process Bar when using HttpConnection?
    By Tanya in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-12-28, 07:59
  3. comparing string???
    By chishti.hameed in forum Symbian
    Replies: 5
    Last Post: 2005-05-06, 08:26
  4. Personal
    By JSmith77 in forum PersonalJava
    Replies: 4
    Last Post: 2003-07-30, 12:52
  5. D211 new linux driver 1.04 not working !!
    By franz_meyer in forum Multimodecards
    Replies: 1
    Last Post: 2002-12-12, 08:31

Posting Permissions

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