自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (5)
  • 收藏
  • 关注

原创 2.1-3

for i = 1 to A.length if (v == A[i]) return i return NIL

2012-08-17 03:59:53 241

原创 2.1-2

//Rewrite the INSERTION-SORT procedure to sort into nonincreasing instead of non- decreasing order. for j = 2 to A.length key = A[j] i = j - 1 while i >0 and A[i] < key A[i +1] = A[i]

2012-08-17 03:36:36 223

原创 Define and output a file

private BufferedWriter writer; try { writer = new BufferedWriter(new FileWriter("log.txt")); } catch(Exception e){ System.out.println(e.getMessage()); }

2012-06-22 15:54:43 189

原创 How to traverse Hashtable in Java

a very simple example from my own project private void removeClassFromStudents(Semester s, String code) { Hashtable studList = s.getStudentsEnrolled(); for(Iterator i = studList.keySet().iterato

2012-06-22 15:49:03 293

原创 some simple Java GUI skills

just learned a little Java gui skills. I think I need to write down these codes so that I can review them in future. the default code for jList is like this: jListPerson.setModel(new jav

2012-06-01 14:26:42 360

原创 good encapsulation

This code is generated by NetBeans. Although it is very simple, it is a good way to understand encapsulation. jButtonAdd.setText("Add"); jButtonAdd.addActionListener(new java.awt.ev

2012-06-01 13:13:40 180

转载 How to use Iterator in Java

// Demonstrate iterators. import java.util.*; class IteratorDemo { public static void main(String args[]) { // create an array list ArrayList al = new ArrayList(); // add elements to the array l

2012-05-20 22:18:20 237

原创 Fuzzy String Matching Algorithm in Java

Source: http://www.codeproject.com/Articles/162790/Fuzzy-String-Matching-with-Edit-Distance I made a little modification to the original code, if you want to read the original code, just click th

2012-05-19 17:42:33 665

Functional Programming in Scala(正式版)

Functional Programming in Scala(正式版)

2016-07-17

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除