String t="adg,dgdg,dhdh,dsahhd";
String temp[]=t.split(",");
System.out.println("_______temp.length______>"+temp.length);
for(int i=0;i<=temp.length-1;i++) 
{
System.out.println("_____________>"+temp[i]);
}
可以将t劈成temp[]
但是换成
String t="adg.dgdg.dhdh.dsahhd";
String temp[]=t.split(".");
System.out.println("_______temp.length______>"+temp.length);
for(int i=0;i<=temp.length-1;i++) 
{
System.out.println("_____________>"+temp[i]);
}就不行,注意已经将t.split(",")改成
t.split(".");为什么?