ublic class Sm0 {
public Sm0()
{
String t=this.stroka("text");
System.out.println(t);
}
public String stroka (String text) {
String check="";
String sum="";
String text="WWWWWWWWWWWWWW. We changed W on a." ;
for(int i=0, i<text.length, i++) {
check=String.valueOf(text.charAt(i));
if(check.equals("W")) { check= "a"; }
sum+=String.valueOf(check);
} //end for loop
System.out.println("sum");
return sum;
}
public static void main(String [] args) {
new Sm0();
}
}