aijava

          welcome to my online log ! open java new world! Taste java charm........
          posts - 1, comments - 4, trackbacks - 0, articles - 42
            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理
          import? java.io.File;

          public?class? MainClass? {
          ???? public?static? void? main ( String?args [])?{
          ?? File?f1?=? new? File ( "MainClass.java" ) ;
          ?? System.out.println ( "File?Name:"? +?f1.getName ()) ;
          ?? System.out.println ( "Path:"? +?f1.getPath ()) ;
          ?? System.out.println ( "Abs?Path:"? +?f1.getAbsolutePath ()) ;
          ?? System.out.println ( "Parent:"? +?f1.getParent ()) ;
          ?? System.out.println ( f1.exists ()? ?? "exists"? :? "does?not?exist" ) ;
          ?? System.out.println ( f1.canWrite ()? ?? "is?writeable"? :? "is?not?writeable" ) ;
          ?? System.out.println ( f1.canRead ()? ?? "is?readable"? :? "is?not?readable" ) ;
          ?? System.out.println ( "is?a?directory"? +?f1.isDirectory ()?) ;
          ?? System.out.println ( f1.isFile ()? ?? "is?normal?file"? :? "might?be?a?named?pipe" ) ;
          ?? System.out.println ( f1.isAbsolute ()? ?? "is?absolute"? :? "is?not?absolute" ) ;
          ?? System.out.println ( "File?last?modified:"? +?f1.lastModified ()) ;
          ?? System.out.println ( "File?size:"? +?f1.length ()? +? "?Bytes" ) ;
          ???? }
          }
          http://freehost13.websamba.com
          主站蜘蛛池模板: 天等县| 四会市| 海伦市| 镇坪县| 鹤岗市| 赫章县| 浦东新区| 道真| 漳州市| 洛川县| 独山县| 旅游| 井研县| 建昌县| 景德镇市| 繁峙县| 大田县| 五华县| 盖州市| 铜山县| 凌海市| 屏东市| 当雄县| 康定县| 连城县| 弥勒县| 黄大仙区| 威宁| 二连浩特市| 沛县| 南城县| 老河口市| 区。| 宝应县| 夏河县| 罗江县| 汤原县| 玛纳斯县| 宿州市| 玉山县| 法库县|