上周五和周末,工作忙里偷闲,在看java cocurrent中也顺便再温故了一下Thread.interrupt和java 5之后的LockSupport的实现。
在介绍之前,先抛几个问题。
Thread.interrupt()方法和InterruptedException异常的关系?是由interrupt触发产生了InterruptedException异常?Th...
分类:
编程语言 时间:
2014-06-19 13:03:42
阅读次数:
733
取文件的大小 (KB,MB,GB...)
2种方式: VB 和 C#
1, VB
Public Function GetFileSize(ByVal iFileSizeKB As Long) As String
Dim iFileSizeMB As Integer
Dim iFileSizeGB As Integer
If (iFileSizeKB >= 1024) Th...
分类:
其他好文 时间:
2014-06-19 12:39:06
阅读次数:
310
题目
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguous subarray [4,...
分类:
其他好文 时间:
2014-06-19 12:08:20
阅读次数:
270
【测试步骤】:
1、进入短信界面
2、菜单-设置
3、修改短信中心号码(Set the SIM's smsc number) 保存
【测试结果】:提示保存成功,但是号码没有改变,退出重新进入设置才会看到号码更新
【预期结果】:提示保存成功,号码变为修改过的号码
相关Activity:通过Logcat中I/ActivityManager( 896):我们可以定位到该类-Messag...
分类:
其他好文 时间:
2014-06-19 11:47:49
阅读次数:
315
题目
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
...
分类:
其他好文 时间:
2014-06-19 11:46:47
阅读次数:
277
题目
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
...
分类:
其他好文 时间:
2014-06-19 10:05:39
阅读次数:
278
Oracle数据类型字符类型CHAR 、 NCHAR VARCHAR2 、 NVARCHAR2
LONG NUMBER 数值类型NUMBER 日期类型TIMESTAMPRAW、LONG RAW 其它类型LOBBFILEXML
TYPE及用户自定义类型1、CHAR及VARCHAR2类型如果对某个CH....
分类:
数据库 时间:
2014-06-16 09:09:12
阅读次数:
321
上一节介绍了jfinal框架的简单搭建,这节通过一个小例子了解jfinal的结构和特点先上图1、建数据库(我用的是oracle数据库,其他的相对也差不多)--
Create tablecreate table CLASSES( classesid NUMBER not null, cl...
分类:
其他好文 时间:
2014-06-16 00:56:24
阅读次数:
857
ptmxDESCRIPTION The file /dev/ptmx is a
character file with major number 5 and minor number 2, usually of mode 0666 and
owner.group of...
分类:
其他好文 时间:
2014-06-16 00:55:41
阅读次数:
310
1729 is the natural number following 1728 and
preceding 1730. It is also known as theHardy-Ramanujan numberafter a famous
anecdote of the British math...
分类:
其他好文 时间:
2014-06-16 00:45:35
阅读次数:
173