Monday 25 February 2013

Replace a * character from String in java using Pattern

Leave a Comment

         String str = "Hello*";
String s = str.replaceAll(Pattern.quote("*")," ");
System.out.println(s);

0 comments:

Post a Comment