标签:
package staticFactory;
public class Array {
public static void main(String[] args) {
String[] a=new String[3];
String[][] b=new String[a.length][];
a[0]=">=,80,20";
a[1]="<,80,15";
a[2]="<,50,5";
for(int i=0;i<a.length;i++){
b[i]=a[i].split(",");
}
for(int i=0;i<b.length;i++){
for(int j=0;j<b[i].length;j++){
System.out.print(b[i][j]+" ");
}
System.out.println("\n");
}
}
}
结果:
>= 80 20 < 80 15 < 50 5
标签:
原文地址:http://www.cnblogs.com/JAYIT/p/5547378.html