代码:public class Practice_Convert { /**
* @param args
*/
public static void main(String[] args) {
String s = "1,3,4,5,5,6,6,7";
String s1[] = s.split(",");//我是用Eclipse写的!但是为什么总是显示:没有为类型 String 定义方法 split(String)
}}P:但是我用文本写,就能编译过去! 为什么呢? 这是为什么呢?
* @param args
*/
public static void main(String[] args) {
String s = "1,3,4,5,5,6,6,7";
String s1[] = s.split(",");//我是用Eclipse写的!但是为什么总是显示:没有为类型 String 定义方法 split(String)
}}P:但是我用文本写,就能编译过去! 为什么呢? 这是为什么呢?
你让我打开了至少三个月没用的Eclipse,
public static void main(String[] args) {
String s = "1,3,4,5,5,6,6,7";
String s1[] = s.split(",");
}
}