Example usage for java.util SimpleTimeZone equals

List of usage examples for java.util SimpleTimeZone equals

Introduction

In this page you can find the example usage for java.util SimpleTimeZone equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Compares the equality of two SimpleTimeZone objects.

Usage

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));
}