Study Java Demo Code