java 创建文件 呵呵 成功

package aaa;
import java.util.Date;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.io.*;


class Animal{
}

class Mammal extends Animal{
}

class Reptile extends Animal{
}

class Dog extends Mammal{
}


public class ccc {

void createFile(String fileName)throws IOException { File file = new File(fileName); file.createNewFile(); System.out.println("文件创建成功!"); }

public static void main(String args[]){

ccc a=new ccc();
try {
a.createFile("c:/aaa.123");
}
catch(IOException e ){}
}

}

delphi lazarus opengl 网页操作自动化, 图像分析破解,游戏开发
原文地址:https://www.cnblogs.com/delphi-xe5/p/5437388.html