Results 1 to 4 of 4

Thread: Need Help

  1. #1
    Join Date
    Jul 2010
    Posts
    2
    Rep Power
    0

    Default Need Help

    Hi all,
    I am converting java script file in java file. I have converted a file without error but having one problem i dont know what is is replacing function for match() (A javascript function) written in java.

    lines written in java scipt are as follow:
    while (set_of_matras.match(charecter_at_probable_positio n_of_half_r) != null) // while-05
    {
    //code lines
    }

    i dont know how to convert it in java
    set_of_matras.match(

    if anybody know please help

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,800
    Rep Power
    19

    Default

    Depends what you're trying to do, but I'm guessing indexOf() is the thing, and > -1 (ie the character exists in the String)?

  3. #3
    Join Date
    Jul 2010
    Posts
    2
    Rep Power
    0

    Default

    Hi Tolls,
    It Worked,!!
    Thank You .!!!!!!!!!!!!

  4. #4
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,800
    Rep Power
    19

Posting Permissions

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