1. Maybe another few better practices to follow than you have now would be:
write "[]" next to the type String. I know it works that way, but not in all cases. If you were use variable arguments (varargs) and would put elipsis right after the variable name, you would get compile error. And the line would look like this:
It would work in this case only when elipsis you put after the type.
2. double amount, kp, pk; (line 7). Better declare variables on separate lines, this habit could lead to compile error at some point too. Example:
that would require to write
3. Try to choose more descriptive variable names, because "kp", "pk" are not descriptive and requires comment itself what they are meant to store. But commenting each variable is not a good idea too, so better to choose better naming approach.
4. Also, try to simplify your "main" method, so it would require to split it to more methods. Main method actually suppose to instantiate your class and start your program. That is actually it, ideally 1 line of code. You could find good advices
here (<- link to click on). Winston Gutkowski wrote this FAQ, and can't remember how many times already I refered to it, see how good it is