AtomicInteger,一个提供原子操作的Integer的类。在Java语言中,++i和i++操作并不是线程安全的,在使用的时候,不可避免的会用到synchronized关键字。而AtomicInteger则通过一种线程安全的加减操作接口。来看AtomicInteger提供的接口。//获取当前的...
分类:
其他好文 时间:
2014-06-26 18:18:11
阅读次数:
272
postScale:设置图片的缩放packagecom.example.examples_05_09;importandroid.R.integer;importandroid.annotation.SuppressLint;importandroid.content.Context;importa...
分类:
其他好文 时间:
2014-06-26 18:02:00
阅读次数:
153
packagecom.example.examples_05_17;importandroid.R.drawable;importandroid.R.integer;importandroid.content.Context;importandroid.graphics.Canvas;importa...
分类:
其他好文 时间:
2014-06-26 17:57:31
阅读次数:
172
错误140624 0:53:42 [ERROR] /usr/libexec/mysqld: Incorrect key file for table './xx/xxx.MYI'; try to repair it140624 0:53:42 [ERROR] /usr/libexec/mysqld....
分类:
数据库 时间:
2014-06-25 18:38:51
阅读次数:
900
Java中的基本数据类型分四类八种byte(Byte-1)/short(Short-2)/int(Integer-4)/long(Long-8)boolean(Boolean-1bit)char(Character-2)float(Float-4)/double(Double-8)括号后是他们的包装...
分类:
编程语言 时间:
2014-06-25 11:31:46
阅读次数:
234
java.sql.SQLException: ORA-01789: query block has incorrect number of result columns
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer...
分类:
数据库 时间:
2014-06-25 07:39:35
阅读次数:
481
题目
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possibl...
分类:
其他好文 时间:
2014-06-24 23:14:28
阅读次数:
238
题目
Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
Have you thought about this?
Here are some good questions to ask before coding. Bonus poin...
分类:
其他好文 时间:
2014-06-24 20:16:39
阅读次数:
180
check_disk命令用法:check_disk-wlimit-climit[-Wlimit][-Klimit]{-ppath|-xdevice}
[-C][-E][-e][-ggroup][-k][-l][-M][-m][-Rpath][-rpath]
[-ttimeout][-uunit][-v][-Xtype]选项:-h,--help
-V,--version
-w,--warning=INTEGER
如果磁盘空闲容量小于INTEGER单位时、ExitwithW..
分类:
其他好文 时间:
2014-06-24 16:34:34
阅读次数:
710