I am invoking a method called \"calculateStampDuty\", which will return the amount of stamp duty to be paid on a property. The percentage calculation works fine, and returns
This should do the trick.
System.out.println(percentageValue.split("\.")[0]);