例:
public static void main(String[] args) { String prodName = "雇员姓名,雇员唯一号"; String[] prodNameArray = prodName.split(","); System.out.println(Arrays.deepToString(prodNameArray)); }
例:
public static void main(String[] args) { String prodName = "雇员姓名,雇员唯一号"; String[] prodNameArray = prodName.split(","); System.out.println(Arrays.deepToString(prodNameArray)); }