Example Java Program With Output Shaft