Notes
In Apex, the equals()
method is used to compare two String objects for equality. It checks if the content of two strings is the same.
Here's an example:
String str1 = 'Hello';
String str2 = 'World';
Boolean areEqual = str1.equals(str2);
System.debug(areEqual);
Output: false
Note:
- This method is case-sensitive, meaning that 'Hello' and 'hello' would be considered different strings.
- If you want a case-insensitive comparison, you might use
equalsIgnoreCase()
method instead.
Video
Video does not exists.