Search:

Type: Posts; User: GregBrannon

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    972

    Re: java code for password

    equals() is a method applied to objects:

    if ( pass.equals( "reason" ) )
  2. Replies
    4
    Views
    972

    Re: java code for password

    if(pass=="reason")

    Do not use the operator '==' to compare Strings. Use the equals() method.

    Note: Next to NPEs that have varied causes, the error above is the most common seen in a forum...
Results 1 to 2 of 2