i need to replace each second letter in every word with string expression
public static void main(String[] args) {
StringBuffer stbf=new StringBuffer("la la la");
int k=1;
String a= "wkj" ;
String s1 = null;
for(int i=0;i<3;i++){
stbf.insert(1, a);
}
System.out.println(stbf);
as a result i want to see lwkj lwkj lwkj
stbf=stbf.replaceAll("la", "lwkj");will do the trick