Simple Java Program Input Output Machine