标签:cannot res resolved 错误 pil color ring time pac
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)
Java 出现cannot be resolved to a type
标签:cannot res resolved 错误 pil color ring time pac
原文地址:https://www.cnblogs.com/hshy/p/11918797.html