import java.io.*;
import java.lang.Byte;
class Testfile
{
public static void main(String[] args)
{
int a,b,c;
a=Integer.parseInt(args[0]);
b=Integer.parseInt(args[1]);
c=a+b;
//Byte b=new Byte("2");
try
{
File myfile =new File("mytest.txt");
myfile.createNewFile();
FileOutputStream fos= new FileOutputStream(myfile);
PrintStream ps=new PrintStream(fos);
ps.print(c);

 

}

catch (Exception e)
{
System.out.println("exception");
}
}
}

文章標籤
全站熱搜
創作者介紹
創作者 ann9999963 的頭像
ann9999963

pon~pon~部落閣

ann9999963 發表在 痞客邦 留言(0) 人氣(9)