1。
name Jo Bloggs
birthday 08-07-1900
phone 88884444
address 9001 Chester Crescent, Chatswood, NSW 2057
email michael@fanfare.com.au
name Michael Willianm
birthday 01-4-1950
address 37 Barton Ave, Haberfield, NSW 2045
phone 19876245
name Linda Evans
birthday 22-02-1996
phone 135625
email l.evans@gmail.com
address 119 Gibbes St, Rockdale, NSW 2216
2.如何用空行分割这两个字符串?这是我写的代码。 string包含这些字符串,我想使用一个数组来存储这三个字符串。
String str[] = string.toString().split("\n\r");
/ * string =我在1.部分中输入的三个字符串* /
Each of the blocks of info are separated by two
\n
s. Hence, you can use\n\n
.