String class - The .equals() method

if (s1.equals(s2)) {
	System.out.println("Same string");
}

Method header structure

(privacy) (return type) methodName(type parameter)
	Public String toString();
String s = object.toString();

boolean expressions

ex:

!(i<2) && s.equals("cat")

what do these expressions evaluate to?

int i = 3;
int k = -2;
String s = "cat";

(!(i < 2) && s.equals("cat")) //true
(!(k < 0) || (i > 5)) //false
//not(3<2) 
//not -2<0 3>5