Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to compare strings java

if (aName.equals(anotherName))
        { 
            System.out.println(aName + " equals " + anotherName);
        }
        else 
            { 
                System.out.println(aName + " does not equal " +anotherName );
                           
            }
 
PREVIOUS NEXT
Tagged: #compare #strings #java
ADD COMMENT
Topic
Name
6+5 =