java.time.ZoneId.equals() 方法示例


java.time.ZoneId.equals() 方法示例

package com.codingdict;

import java.time.ZoneId;

public class ZoneIdDemo {
   public static void main(String[] args) {

      ZoneId zone1 = ZoneId.of("Z");
      System.out.println(zone1);  
      ZoneId zone2 = ZoneId.of("Asia/Calcutta");
      System.out.println(zone2);  
      System.out.println(zone1.equals(zone2));  
   }
}