import java.io.*;public class getProperties{
public static void main(String[] args) throws IOException{
Properties p=System.getProperties();
String s=p.toString();
File f=new File("E://learn//properties.txt");
FileOutputStream fos=new FileOutputStream(f);
int ch;
PrintStream ps = new PrintStream(fos);
ps.print("a");
}
}
public static void main(String[] args) throws IOException{
Properties p=System.getProperties();
String s=p.toString();
File f=new File("E://learn//properties.txt");
FileOutputStream fos=new FileOutputStream(f);
int ch;
PrintStream ps = new PrintStream(fos);
ps.print("a");
}
}
幸好你的这个比较短
不然大家都懒得看