MessageFormat equals() method in Java with Example
The equals() method of java.text.MessageFormat class is used to check if both the MessageFormat objects are same or not.
public boolean equals(Object obj)
Parameter: This method takes MessageFormat objects which will be compared with the current MessageFormat object.
Return Value: if both the MessageFormat objects are equal to each other then it will return true otherwise false.
Below are the examples to illustrate the equals() method:
mf1 is equals to mf2
mf1 is not equal to mf2