A weekend again, I just send an e-mail to the red-flag company. It’s just a wish, I think.
Record some code sum-up on this week.
1、
SpitTest --- learned from www.javatx.cn Welcome to this website, I master the J2SE section
J
1
public
class
SpitTest
{
2
3
/** */
/**
4
*
@param
args
5
*/
6
public
static
void
main(String[] args)
{
7
8
String info
=
"
elementX1,elementY1,elementZ1
"
9
+
"
\\r\\n
"
10
+
"
elementX2,elementY2,elementZ2
"
11
+
"
\\r\\n
"
;
12
info
=
info.replace(
"
\\r\\n
"
,
"
,
"
);
13
String str[]
=
info.split(
"
,
"
);
14
for
(
int
i
=
0
; i
<
str.length; i
++
)
{
15
System.out.println(str[i]);
16
}
17
}
18
}
I think it’s a very good idea to solve the problem, if I do it, I may use the split twice.
(to be continuted)