Java 出现cannot be resolved to a type


package com.sysutil.util;

/* thishi duo zhu
*/
// dan zhshi 
import com.sysutil.util.*;
class Example
{
    public static void main(String[] args)
    { 
        DateTool datato = new DataTool();
        String stdd = DateTool.getDateTime();
        System.out.println(stdd);
    }
}
     DateTool datato = new DataTool();
日期类中所有成员方法都是static的。 new对象出现错误 :

Exception in thread "main" java.lang.Error: Unresolved compilation problem:
DataTool cannot be resolved to a type

at com.sysutil.util.Example.main(Example.java:11)


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM