Java замените первое появление подстроки

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