- class spiltDemo
- {
- public static void main(String[] args)
- {
- String arr ="23,45,12,46,34,45,23";
- String[] arr1 =arr.spilt(",");
- for (int i=0;i<=arr1.length;i++ )
- {
- System.out.println(arr1[i]);
- }
-
- }
- }
复制代码 ---------- javac ----------
spiltDemo.java:6: 错误: 找不到符号
String[] arr1 =arr.spilt(",");
^
符号: 方法 spilt(String)
位置: 类型为String的变量 arr
1 个错误
|
|