This code worked for me!
public static void main(String[] args) throws Exception {
String Input="75.74306816000052";
String Input2 = "26.9";
BigDecimal Output= new BigDecimal(Input).setScale(2, RoundingMode.HALF_EVEN);
System.out.println(Output.setScale(2));
BigDecimal Output2= new BigDecimal(Input2).setScale(2, RoundingMode.HALF_EVEN);
System.out.println(Output2.setScale(2)); }