Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor devdattac's Avatar
    Join Date
    Aug 2008
    Location
    Pune
    Posts
    223
    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
    Nokia Developer Moderator croozeus's Avatar
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,635
    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 devdattac's Avatar
    Join Date
    Aug 2008
    Location
    Pune
    Posts
    223
    Thanx 4 reply........

  4. #4
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    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 honest_success's Avatar
    Join Date
    Sep 2007
    Posts
    915
    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 devdattac's Avatar
    Join Date
    Aug 2008
    Location
    Pune
    Posts
    223
    Thanx 4 reply .....

  7. #7
    Nokia Developer Champion honest_success's Avatar
    Join Date
    Sep 2007
    Posts
    915
    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 C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved