i am not sure about java syntax but you can try something like this. its simple maths problem
var newamount = oldamount(origional amount) * 1(this is your percentage)/100;
you need to take care about decimal point precision or sometimes conversion from string to decimal may be.
hope this will help.
[Edit member="Tadit"]
Corrected formatting issues.
Added
pre
tags.
[/Edit]