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

import java.util.*;
import java.lang.*;
import java.io.*;
import java.time.LocalTime;
import java.sql.Time;

/* 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
	{
		// your code goes here
		var res = new Reservation("11:05", "18:05");
		System.out.println(res);
		
		Time timeIn = Time.valueOf( "11:05:00" );
		Time timeOut = Time.valueOf( res.getCheckOutTime() );
	}

	static class Reservation {
		LocalTime checkIn;
		LocalTime checkOut;
		
		public Reservation(String in, String out) {
		   	this.checkIn = LocalTime.parse(in);
		   	this.checkOut = LocalTime.parse(out);
		}
		
		public LocalTime getCheckInTime() {
			return checkIn;
		}
        public LocalTime getCheckOutTime() {
        	return checkOut;
        }
        
        public String toString() {
        	return String.format("Reservation {checkIn: %s, checkOut: %s}", getCheckInTime(), getCheckOutTime());
        }
	}
	
}