/* 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
{
{
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:00.000Z"
)
.map(Instant::parse)
.
forEach(System.
out::println
); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnRpbWUuKiA7CmltcG9ydCAgamF2YS51dGlsLnN0cmVhbS4qIDsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU3lzdGVtLm91dC5wcmludGxuKCAiUnVudGltZS52ZXJzaW9uKCk6ICIgKyBSdW50aW1lLnZlcnNpb24oKSApIDsgIC8vIEluIEphdmEgOSsuIAoJCQoJICAgIFN0cmVhbS5vZigKCSAgICAgICAgIjIwMTAtMDEtMDFUMTI6MDA6MDArMDE6MDAiLAoJICAgICAgICAiMjAxMC0wMS0wMVQxMjowMDowMC0wMTowMCIsCgkgICAgICAgICIyMDEwLTAxLTAxVDEyOjAwOjAwLjAwMFoiCgkgICAgICApCgkgICAgICAubWFwKEluc3RhbnQ6OnBhcnNlKQoJICAgICAgLm1hcChEYXRlOjpmcm9tKQoJICAgICAgLmZvckVhY2goU3lzdGVtLm91dDo6cHJpbnRsbik7Cgl9Cn0=