码迷,mamicode.com
首页 >  
搜索关键字:short    ( 4647个结果
String和StringBuffer
已知在Java中,boolean、byte、short、int、long、char、float、double这八种是基本数据类型,其余的都是引用类型,比如String、数组、接口、对象等。 当我们声明一个引用类型变量时,系统只为该变量分配了引用空间,并未创建一个具体的对象; 当用new为对象...
分类:其他好文   时间:2014-05-12 11:58:21    阅读次数:342
《More Effective C++》 条款5 谨慎定义类型转换函数
---恢复内容开始---C++编译器能够在两种数据类型之间进行隐式转换(implicit conversions),它继承了C语言的转换方法,例如允许把char隐式转换为int和从short隐式转换为double。因此当你把一个short值传递给准备接受double参数值的函数时,依然可以成功运行。...
分类:编程语言   时间:2014-05-12 05:17:15    阅读次数:481
java String转Integer分析
我们经常为用到Integer.valueOf(String str)这个方法,如果字符串格式不对,这个方法会抛出一个系统异常NumberFormatException 这里我们就要分析一下这个方法,其中Byte,Short也是调用了Ingeter中的方法. 在Integer类中的定义如下: publ...
分类:编程语言   时间:2014-05-12 01:59:15    阅读次数:395
C里面的类型字节长度和范围
32位平台char 1个字节8位short 2个字节16位int 4个字节32位long 4个字节long long 8个字节指针 4个字节64位平台char 1个字节short 2个字节int 4个字节long 8个字节long long 8个字节指针 8个字节范围char -128 ~ +127...
分类:其他好文   时间:2014-05-10 07:18:37    阅读次数:217
CRC16 查表法
1 static const unsigned short crc16_table[256]= 2 { 3 0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0x0280, 0xC241, 4 0xC601, 0x06C...
分类:其他好文   时间:2014-05-10 00:02:02    阅读次数:382
解读AsyncTask
要点:AsyncTask主要用于short operations (a few seconds at the most.)。如果你需要“running for long periods of time”,官方推荐使用various APIs provided by the java.util.con...
分类:其他好文   时间:2014-05-09 23:46:38    阅读次数:304
Effective Java 74 Implement Serializable judiciously
Unless a class is to be thrown away after a short period of use, implementing Serializable is a serious commitment that should be made with care. Extr...
分类:编程语言   时间:2014-05-09 07:49:13    阅读次数:510
通过java反射获取任意对象的字段名及字段值
import java.lang.reflect.Field; public class ReflectClass3 { /** * @param args */ public static void main(String[] args) { Person p = new Person(1, "ctl", true, 'c', 2.0f, 2.0, 1L, (short) 1...
分类:编程语言   时间:2014-05-09 06:18:19    阅读次数:580
java ==和equals的区别
java中的数据类型,可分为两类: 1.基本数据类型,也称原始数据类型。byte,short,char,int,long,float,double,boolean 他们之间的比较,应用双等号(==),比较的是他们的值。 2.复合数据类型(类) 当他们用(==)进行比较的时候,比较的是他们在内存中.....
分类:编程语言   时间:2014-05-08 15:13:23    阅读次数:395
android Toasts
1.基础 Context context = getApplicationContext(); CharSequence text = "Hello toast!"; int duration = Toast.LENGTH_SHORT; Toast toast = Toast.makeText(context, text, duration); toast.show(); 当然也可以将方...
分类:移动开发   时间:2014-05-08 04:19:04    阅读次数:357
4647条   上一页 1 ... 461 462 463 464 465 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!