摘要: java在java.net包提供了丰富的api供网络编程,主要包括了:URLConnection,HttpURLConnection用于从服务器端获取数据;ServerSocket和Scoket建立TCP服务器和客户端;DatagramSocket建立UDP服务器和客户端;ServerSocket和... 阅读全文
posted @ 2015-09-22 15:16 码农大刘 阅读(158) 评论(0) 推荐(0) 编辑
摘要: DOM(Document Object Model) API: 顾名思义,基于dom 书读写xml。public static void main(String[] args) throws SAXException, IOException, ParserConfigurat... 阅读全文
posted @ 2015-09-21 16:07 码农大刘 阅读(564) 评论(0) 推荐(0) 编辑
摘要: Nashorn是在java中高效动态执行JS代码的运行环境。ScriptEngine engine = new ScriptEngineManager().getEngineByName("nashorn"); engine.eval("print('hello');"); // ex... 阅读全文
posted @ 2015-09-21 09:22 码农大刘 阅读(3664) 评论(0) 推荐(0) 编辑
摘要: 倒出/usr/libexec/java_home为$JAVA_HOME到文件~/.bash_profile或者~/.profile。打开Terminal,输入以下command:vim .bash_profile export JAVA_HOME=$(/usr/libexec/java_home... 阅读全文
posted @ 2015-09-20 20:59 码农大刘 阅读(468) 评论(0) 推荐(0) 编辑
摘要: http://www.androidchina.net/3345.html 阅读全文
posted @ 2015-09-18 20:59 码农大刘 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 显示隐藏文件夹 在命令行下输入:defaults write com.apple.finder AppleShowAllFiles YESMacOSX10.10.4 SSD TRIM 功能 在命令行下输入:sudotrimforceenableNTFS读写 diskutil inf... 阅读全文
posted @ 2015-09-17 08:38 码农大刘 阅读(298) 评论(0) 推荐(0) 编辑