public class MainActivity extends Activity { private Button button; @Override protected void onCreate(Bundle savedInstanceState) { sup...
分类:
其他好文 时间:
2015-05-12 01:37:08
阅读次数:
139
Android--取出SDcard卡上指定后缀名的文件1.import java.io.File;import java.io.FilenameFilter;/** * 后缀名过滤器 * @author ZLQ * */public class FileNameSelector implements...
分类:
移动开发 时间:
2015-05-12 01:35:49
阅读次数:
133
一 注解优点?注解解决了什么问题,为什么要使用注解?二 注解的来龙去脉(历史)Spring 3.1 Reference 对注解与XML对比的一段叙述:1 没有注解之前public class UserManagerImpl implements UserManager { privat...
分类:
编程语言 时间:
2015-05-12 01:34:40
阅读次数:
174
定义需要传递给线程的数据。
class Student
{
public string Name { get; set; }
public int Age { get; set; }
public int Score { get; set; }
}
List studentList = new List() {
new Student(){Na...
分类:
编程语言 时间:
2015-05-12 00:13:44
阅读次数:
129
public sealed class SqlCommand : DbCommand, ICloneablesqlcommand命令,执行命令例子: SqlCommand command = new SqlCommand(" insert into Table_1 values('2')", con...
分类:
数据库 时间:
2015-05-12 00:03:27
阅读次数:
153
At first, I want to thank Austin that he gave us a different experience. His western humor makes the class activeandhis interesting teaching method ma...
分类:
其他好文 时间:
2015-05-11 23:58:15
阅读次数:
285
1 class TrieNode { 2 public: 3 const static int NR_FANOUT = 26; 4 TrieNode* child[NR_FANOUT]; 5 int count; 6 // Initialize your data ...
分类:
其他好文 时间:
2015-05-11 23:55:30
阅读次数:
191
有效的括弧匹配注意事项:1 使用stack遇到'(' '[' '{'就push,遇到')' ']' '}'匹配进行pop等操作class Solution {public: bool isValid(string s) { stack mystack; char tmp; for(char c:s....
分类:
其他好文 时间:
2015-05-11 23:43:31
阅读次数:
159
1 public class TestJoin { 2 public static void main(String[] args) { 3 MyThread2 t1 = new MyThread2("abcde"); 4 t1.start(); 5 try { 6 ...
分类:
编程语言 时间:
2015-05-11 23:42:37
阅读次数:
261
原文网址:http://www.cnblogs.com/mengdd/archive/2013/02/16/2913659.html先看一个程序例子: public class HelloThreadTest{ public static void main(String[] args) ...
分类:
编程语言 时间:
2015-05-11 23:38:12
阅读次数:
159