
JavaSE
文章平均质量分 59
Java
--JavaSE
诗意prince
哈哈
展开
-
RuntimeUtils.exec使用
WINDOWS系统下:1.参数为string形式 String command = "cmd.exe /c start C:\\Users\\NPSW0220\\Desktop\\jd-gui.exe" ; process = Runtime.getRuntime().exec(command) ;2.string[] 形式 String[] comma原创 2017-08-08 09:06:15 · 2037 阅读 · 0 评论 -
String和Buffer互转
一、String转换为InputStream: 先得到byte数组,再封装成ByteArrayInputStream String str = "I am a boy"; InputStream is = new ByteArrayInputStream(str.getBytes()); 二、String转换为Reader:原创 2017-08-08 19:23:51 · 4747 阅读 · 0 评论 -
List集合对象引用问题
一、List的值为List: 在添加List到List中时,要注意以下问题: Module m ; Case c ; List caseList = null ; //List元素下的List属性 List mList = new ArrayList原创 2017-08-15 11:19:34 · 432 阅读 · 0 评论