Java demo copy