Results 1 to 3 of 3

Thread: Issue

  1. #1
    chaitu444 is offline Member
    Join Date
    Nov 2007
    Posts
    1
    Rep Power
    0

    Default Issue

    Hi when i run this code i am getting an error as
    ')' expected
    if(semiColIndexFlag! = -1)
    ^
    1 error


    CODE AREA
    public String Substring(String a,Container container){

    String output = a;
    int semiColIndexFlag = a.indexOf(";");
    if(semiColIndexFlag! = -1)
    {
    String[] inputArr = a.split(";");
    output = inputArr[0] + inputArr[1];
    }
    return output;

    }

    Please help.

    Rgds,
    Kumar

  2. #2
    ShoeNinja's Avatar
    ShoeNinja is offline Senior Member
    Join Date
    Oct 2007
    Posts
    124
    Rep Power
    0

    Default

    You need a space in your if condition.

    Java Code:
    if(semiColIndexFlag (space) != -1)

  3. #3
    assamhammad is offline Member
    Join Date
    Nov 2007
    Posts
    7
    Rep Power
    0

Similar Threads

  1. Alignment Issue...
    By chanduseec in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 09-30-2008, 07:47 AM
  2. Issue with Buttons and ActionPerformed
    By Deathmonger in forum Advanced Java
    Replies: 1
    Last Post: 04-17-2008, 09:47 AM
  3. JFormattedTextField Issue
    By teracomp in forum AWT / Swing
    Replies: 1
    Last Post: 01-21-2008, 07:55 PM
  4. Try Catch issue
    By curtis_fraser in forum Advanced Java
    Replies: 2
    Last Post: 12-14-2007, 12:04 AM
  5. compilation issue
    By orchid in forum Eclipse
    Replies: 2
    Last Post: 04-20-2007, 01:51 AM

Posting Permissions

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