Answers for "java replace first occurrence of substring"

0

java replace first occurrence of substring

String payment = "10.20.30.40";
payment = payment.replaceFirst("[.]", ",");  // Replace the first dot (.) with coma (,)
System.out.println(payment);  // 10,20.30.40
Posted by: Guest on March-29-2022

Code answers related to "java replace first occurrence of substring"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language