Click here to watch on Youtube :
https://www.youtube.com/watch?v=wJ5ztQot3YM&list=UUhwKlOVR041tngjerWxVccw
ZoneIdDemo.java
Output
Click the below link to download the code:
https://sites.google.com/site/ramj2eev1/home/javabasics/ZoneIdDemo_of_zone_id_hashMap.zip?attredirects=0&d=1
Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/ZoneIdDemo_of_zone_id_hashMap
Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/3257b2b60dbdaa3f302cadf3c4541c1735b11f35/BasicJava/ZoneIdDemo_of_zone_id_hashMap/?at=master
See also:
All JavaEE Videos Playlist
All JavaEE Videos
All JAVA EE Links
Servlets Tutorial
All Design Patterns Links
JDBC Tutorial
Java Collection Framework Tutorial
JAVA Tutorial
Kids Tutorial
https://www.youtube.com/watch?v=wJ5ztQot3YM&list=UUhwKlOVR041tngjerWxVccw
ZoneIdDemo.java
import java.time.ZoneId;
import java.util.HashMap;
public class ZoneIdDemo
{
public static void main(String[] args)
{
/*
* Parameters:
*
* zoneId - the time-zone ID, not null
*
* aliasMap - a map of alias zone IDs (typically
* abbreviations) to real zone IDs, not null
*
* Returns:
*
* the zone ID, not null
*/
ZoneId zoneId = ZoneId.of("UTC", new HashMap<>());
System.out.println(zoneId);
}
}
import java.util.HashMap;
public class ZoneIdDemo
{
public static void main(String[] args)
{
/*
* Parameters:
*
* zoneId - the time-zone ID, not null
*
* aliasMap - a map of alias zone IDs (typically
* abbreviations) to real zone IDs, not null
*
* Returns:
*
* the zone ID, not null
*/
ZoneId zoneId = ZoneId.of("UTC", new HashMap<>());
System.out.println(zoneId);
}
}
Output
UTC
Click the below link to download the code:
https://sites.google.com/site/ramj2eev1/home/javabasics/ZoneIdDemo_of_zone_id_hashMap.zip?attredirects=0&d=1
Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/ZoneIdDemo_of_zone_id_hashMap
Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/3257b2b60dbdaa3f302cadf3c4541c1735b11f35/BasicJava/ZoneIdDemo_of_zone_id_hashMap/?at=master
See also:
No comments:
Post a Comment