Java 将字符串",1,2,3" 转化为integer数组 [0,1,2,3] 请尽可能简单_百 ...答:String str = "'', 1, 2, 3";String[] strAry = str.split(",");int[] intAry = new int[strAry.length];for(int i = 0; i < strAry.length; i++){ try{ intAry[i] = Integer.parseInt(strAry[i].trim());}catch (NumberFormatException nbFmtExp){ intAry[i] = 0;}...