ublic class Sm0 public Sm0 String this stroka text System out println

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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();
}
}