java console sync