java.util.SimpleTimeZone.equals() 方法


java.util.SimpleTimeZone.equals() 方法

package com.codingdict;

import java.util.*;

public class SimpleTimeZoneDemo {
   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));
   }      
}