/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.time.* ;
import  java.util.stream.* ;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		System.out.println( "Runtime.version(): " + Runtime.version() ) ;  // In Java 9+. 
		
	    Stream.of(
	        "2010-01-01T12:00:00+01:00",
	        "2010-01-01T12:00:00-01:00",
	        "2010-01-01T12:00:00Z"
	      )
	      .map(Instant::parse)
	      .map(Date::from)
	      .forEach(System.out::println);
	}
}