谢谢!
解决方案 »
- JFrame菜单问题
- a=a+5;与a+=5 真的一样吗?
- java.sql.SQLException: The SQL statement must not be null or empty.
- 请问如何捕捉windows 鼠标拖动文件事件
- 求高手怎样在JTextArea或JTextPane中显示竖排文字,而且是从左到右的竖排
- JTree的用法
- 这些题目你能做出来多少?
- 怎样在程序运行时动态增减显示行数。高分相送!!!!
- 关于socket,请大牛们帮忙看一下。。。。
- 我用JBuilder5 出了个问题:Error#466:method does not return a vlue at line ……
- 键盘事件问题,急急急,在线等!!!!!
- 构造url对象的参数如何写
try {
String strUrlPath = "com/iijt/ticket/client/properties/URL.properties";
InputStream fis = new FileInputStream(strUrlPath);
FileOutputStream fos = new FileOutputStream(strUrlPath);
Properties prop = new Properties();
prop.load(fis);
prop.put("url", url);
prop.store(fos, "");
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally{
fos.close();
fis.close();
prop.clear();
}
url=I want to write this to properties