编程语言之JAVA学习
AU3604
这个作者很懒,什么都没留下…
展开
-
两种格式化float的方式,不同的输出
float mAverageNumber = sum/12; NumberFormat numFormat = NumberFormat.getNumberInstance(); numFormat.setMaximumFractionDigits(2); String str = numFormat.format(mAverageNumber);原创 2013-04-09 22:52:42 · 1408 阅读 · 0 评论 -
正则表达式30分钟入门教程(very good)
http://www.cnblogs.com/deerchao/archive/2006/08/24/zhengzhe30fengzhongjiaocheng.html转载 2013-04-21 23:17:45 · 749 阅读 · 0 评论 -
备注几个常用的OJ练习平台
北京大学OJ http://poj.org/ http://projecteuler.net/problems http://www.topcoder.com/原创 2013-04-07 00:38:21 · 2160 阅读 · 0 评论 -
Java object sorting example (Comparable and Comparator)
In this tutorial, it shows the use of java.lang.Comparable and java.util.Comparator to sort a Java object based on its property value. 1. Sort an Array To sort an Array, use the Arrays.sort().翻译 2013-11-19 23:00:16 · 1150 阅读 · 0 评论 -
JAVA日期使用归纳总结
java中的日期处理类总结:Date/Calendar/GregorianCalendar/DateFormat/SimpleDateFormat类 1、 Date类(该类现在很少用了) l Date类对象的创建: n 创建一个当前时间 //默认是创建一个代表系统当前日期的Date对象 Date d = new Date(转载 2013-12-09 00:29:24 · 892 阅读 · 0 评论 -
Two-dimensional arrays as arrays of arrays
Two-dimensional arrays as arrays of arrays Arrays of arrays Java builds multi-dimensional arrays from many one-dimensional arrays, the so-called "arrays of arrays" approach. There are a couple of翻译 2013-12-02 23:20:06 · 1211 阅读 · 0 评论