Java reemplaza la primera aparición de la subcadena
String payment = "10.20.30.40";
payment = payment.replaceFirst("[.]", ","); // Replace the first dot (.) with coma (,)
System.out.println(payment); // 10,20.30.40
OwO People