I could not find any getMoney method in your class definition that takes a parameter. Are you sure you did not want to use machine.setMoney(input) instead?1 to this question?2
I mean that is a comment. It is a statement then a question requesting more information.
How is this a valid attempt to answer and why should it not be a comment?
1I linked to the original because that is what I want feedback on. I think Drew had good intentions trying to help make it more of an answer with his edit, but personally I still think it is a comment even with his edit.
2Ignore the fact that the question is extremely poor and unclear, that is not relevant or the point, I just added this link because I know someone was going to ask for it.