看看java.lang.Class类中有没有可用的method

解决方案 »

  1.   

    错了,是java.io.File类,查查j2sdk documentation
      

  2.   

    File类
     long lastModified() 
              Returns the time that the file denoted by this abstract pathname was last modified FileView 类
     String getTypeDescription(File f) 
              A human readable description of the type of the file.
      

  3.   

    java.io.File
    获取文件类型你取文件的后缀就行了,更新时期是lastModified()方法。
      

  4.   

    如果将 lastModified() 转换成: 0000-00-00 00:00:00 ? 请指教