随笔分类 -  Java

摘要:window-->preference-->general-->content type然后在<Content Types>中展开每一个子项,并在<Default encoding>中输入"UTF-8 "或"GB18030 ", 点update! 阅读全文
posted @ 2016-11-30 11:29 Andy·Li 阅读(139) 评论(0) 推荐(0)
摘要:打开 Eclipse -> Window -> Perferences -> Java -> Editor -> Content Assist,在右边最下面一栏找到 auto-Activation ,下面有三个选项,找到第二个“Auto activation triggers for Java:”选 阅读全文
posted @ 2016-11-30 11:28 Andy·Li 阅读(148) 评论(0) 推荐(0)
摘要:java.text.NumberFormat nf = java.text.NumberFormat.getInstance(); nf.setGroupingUsed(false); nf.format(double数据) 阅读全文
posted @ 2016-11-24 10:14 Andy·Li 阅读(2934) 评论(0) 推荐(0)
摘要:JDK下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 打开安装包会分两步进行,先装JDK,然后会弹出新的窗口选择路径安装JRE,这里需要注意一下。 JAVA_HOME:C 阅读全文
posted @ 2016-11-22 12:44 Andy·Li 阅读(142) 评论(0) 推荐(0)