`
Fox_ed
  • 浏览: 3537 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
多线程操作ArrayList实现同步 Collections集合操作工具类,把Arraylist封装成线程安全的。 List list = Collections.synchronizedList(new ArrayList());
public class Sort{ /** * 直接插入排序 * @param arr * @return */ public static int[] insertSortImpl(int[] arr) { if(arr != null && arr.length > 0) { int length = arr.length; for(int i = 1; i < length; i++) { int currentData = arr[i]; int tmp = i; ...
1、单链表的存储结构 /** * 单链表 * @author fox * */ public class Node { private Object nodeValue; private Node nextNode; public Node() { nodeValue = null; nextNode = null; } public Node(Object item) { nodeValue = item; nextNode = null; } public Node(Object item, Node ...
用Java写的一个线性表的简单实现 1、接口设计 package linearTable; /** * 线性表的接口设计 * @author fox * */ public interface LinearList { public boolean isEmpty(); public int size(); public Object get(int index); public void set(int index,Object e); public boolean add(int index, Object o); public boole ...

start with hello world

    博客分类:
  • java
转眼做开发已经快一年。 有些东西还是看了就会了,会了不用,又忘了。 所以打算以后将一些小知识都保存在这里。 从helloworld开始吧 public class HelloWorld { public static void main(String[] args) { System.out.println("HelloWorld!"); } } JQuery MiniUI http://www.miniui.com/demo/#src=datagrid/celledit.html
Global site tag (gtag.js) - Google Analytics