public static void main(String[] args) {
String a = "a"+"|";
String b = "b"+"|";
String c = "c"+"|";
String address=a+b+c;
System.out.println("address = "+address);
String[] splitAddress=address.split("\|"); //去除特殊字符,返回数组
for(int i =0 ; i<splitAddress.length ; i++){
System.out.println("第"+i+"等于"+splitAddress[i]);
}
}