Continue with my JAVA test series.
This is the last one of the test series. It also about the regular expressions.
?1
public
?
class
?testreplaceall
?2
{
?3
????
public
?
static
?
void
?main(String?args[])
?4
????
{
?5
????????String?s?
=
?
"
aaaaa=
"
;
?6
????????s
=
?s.replace(
"
=
"
,
""
);
?7
????????System.out.println(
?
"s
?is?
"+s
);
?8
????????s
=
?
"
aaaa.
"
;
?9
????????s
=
?s.replaceAll(
"
\\.
"
,
""
);
10
????????System.out.println(
"s
?is?
"+s
);
11
????????s
=
?
"
aaaa.
"
;
12
????????s
=
?s.replaceAll(
"
.
"
,
""
);
13
????????System.out.println(
"s
?is?
"+s
);
14
????}
15
}
16
????????

?2



?3

?4



?5

?6

?7

?8

?9

10

11

12

13

14

15

16
