- 博客(4)
- 资源 (10)
- 问答 (1)
- 收藏
- 关注
原创 Jfreechart屏幕坐标和数据值的转换
Rectangle2D rectangle2d = chartPanel.getChartRenderingInfo().getPlotInfo().getDataArea();
2013-10-19 21:27:28 651
原创 最大子序列求和
public static int maxSubSum4(int[] a) { int maxSum = 0, thisSum = 0; for (int j = 0; j thisSum += a[j]; if (thisSum > maxSum) maxSum = thisSum; else if (thisSum thisSum = 0; } r
2013-10-14 20:57:54 393
原创 java使用序列化实现深克隆
public static Object deepClone(Object source) { ObjectOutputStream oos = null; ObjectInputStream ois = null; File file = null; try { FileOutputStream fos = new FileOutputStream("objFile"); oos =
2013-10-09 16:42:24 510
原创 java通配符的使用方法
1、在java中,数组是协变的,假设有个Dog类,Object[] Dog IS-A Object{} Object,但是集合没有协变性,List IS-NOT-A List,java可以采用通配符来解决这个问题,即采用List<? extends Object>来赋予集合协变性。
2013-10-07 21:16:01 999
DWZ与zTree在IE6下的整合问题
2016-01-27
TA创建的收藏夹 TA关注的收藏夹
TA关注的人