Add java Machine Problem1