- 博客(7)
- 资源 (2)
- 收藏
- 关注
原创 Android之Application
Application:在Android程序中,可以有多个Activity,但Application只有一个。所以Android程序的真正入口是Application中的onCreate()函数。并不是很多人理解的Activity的onCrea()函数。而且在Android程序中,Application只能被实例一次。Application的声明周期和程序是一样长的。一般可能我们在
2015-10-24 01:38:25 424
原创 Thread 线程
java中,当java命令启动一个java 虚拟机进程时,java虚拟机都会创建一个主线程,该主进程从程序入口main()方法开始执行。主线程是java虚拟机进程自动创建的。我们也可以在程序中创建自己的线程,因为线程间可以并发运行,所以可以帮助我们提高程序的运行效率。创建线程有两种方式,如下:1. 扩展java.lang.Thread类2. 实现Runnable接口
2015-10-21 19:10:27 495
原创 Leetcode3 Longest Substring Without Repeating Characters
题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is
2015-10-21 15:19:15 325
原创 Leetcode75 Sort Colors
leetcode代码已经放入github:[https://github.com/gaohongbin/leetcode](https://github.com/gaohongbin/leetcode) 题目: Given an array with n objects colored red, white or blue, sort them so that objects of the sa
2015-10-18 20:42:20 783
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人