List of usage examples for java.util SimpleTimeZone equals
public boolean equals(Object obj)
SimpleTimeZone
objects. From source file:Main.java
public static void main(String args[]) { // create two simple time zone objects SimpleTimeZone stobj1 = new SimpleTimeZone(720, "India"); SimpleTimeZone stobj2 = new SimpleTimeZone(720, "India"); // compare two objects System.out.println("Comparison result: " + stobj1.equals(stobj2)); }