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

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

import java.time.* ;
import java.time.temporal.* ;
import java.time.format.* ;

/* 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
	{

    String input = "2018-12-31-12.30.50.000200" ;
    DateTimeFormatter f = DateTimeFormatter.ofPattern( "uuuu-MM-dd-HH.mm.ss.SSSSSS" ) ;
    LocalDateTime ldt = LocalDateTime.parse( input , f ) ;

    ZoneId z = ZoneId.of( "Asia/Tokyo" ) ;
    ZonedDateTime zdt = ldt.atZone( z ) ;
    
    Instant instant = zdt.toInstant() ;

System.out.println( "input: " + input ) ;
System.out.println( "ldt: " + ldt ) ;
System.out.println( "zdt: " + zdt ) ;
System.out.println( "instant: " + instant ) ;

	}
}