在同一个package中,不要import.如果不在同一个package中需要import.格式如下:test1.java;package cn.com; //自定义的import.
public class test1
{
}package dl.ln;import cn.com.test1;//你要的import;public class test2
{
public test2()
{
test1 t = new test1();
}
}
public class test1
{
}package dl.ln;import cn.com.test1;//你要的import;public class test2
{
public test2()
{
test1 t = new test1();
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货