replaceAll method in java
I have a problem about using replaceAll method in my java app. I think there is a compile error, and the code is : public static void main(String[] args) { String Str = " Welcome to Itpro.com please visit programming.itpro.com"; System.out.println(Str.replaceAll(".com", ".net")); } } and output is : We.nete to Itpro.net please visit programming.itpro.net welcome… Read More replaceAll method in java