04 2014 档案

关于Java中的GUI事件处理
摘要:关于事件监听的实现过程通过下面的代码来具体说明: 1 package com.sxt; 2 3 import java.awt.BorderLayout; 4 import java.awt.event.ActionEvent; 5 import java.awt.event.ActionList... 阅读全文

posted @ 2014-04-26 17:21 CoolRandy 阅读(427) 评论(0) 推荐(0)

Java内部类、静态嵌套类、局部内部类、匿名内部类
摘要:Nested classes are further divided into two types:static nested classes: If the nested class is static, then it’s called static nested class. Static n... 阅读全文

posted @ 2014-04-20 10:30 CoolRandy 阅读(401) 评论(0) 推荐(0)

动态规划之LCS(最大公共子序列)
摘要:#include #include int b[50][50];int c[50][50];int length = 0;void lcs(char *x, int m, char *y, int n){ int i; int j; for(i = 1; i c[i][j-1]) { c[i][j] = c[i-1][j]; b[i][j] = 2; } else { c[i][j] = c[i][... 阅读全文

posted @ 2014-04-06 18:20 CoolRandy 阅读(258) 评论(0) 推荐(0)