Mark this thread as SOLVED.
Type: Posts; User: Mr.777
Mark this thread as SOLVED.
Read the 2nd reply to your thread and you will get your answer. See that carefully.
Paste the errors messages here so that we could have a look over them.
purchase price = Integer.parseInt(input);
Where is purchase price declared/initialized? And variables can't have whitespace...