Skip to Content
avatar image
Former Member

Help on java code

Hi All,

Below Java code is not working,

String Sourcesys = "FR00";

String IBAN="FR7610228043100002009984041";

if (IBAN.substring(0,2) == Sourcesys.substring(0,2) )

{

some code....

its not entering this loop??

}

Any ideas......

Thx.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Mar 01, 2012 at 11:48 PM

    if ( (IBAN.substring(0,2)).equals(Sourcesys.substring(0,2)))

    This code works..........

    what to say about java.........Nyways....its solved. thx.

    Add comment
    10|10000 characters needed characters exceeded