Java程序设计Java程序设计 (10).pdf





《Java程序设计Java程序设计 (10).pdf》由会员分享,可在线阅读,更多相关《Java程序设计Java程序设计 (10).pdf(8页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、(Wrapper Class)JavabyteByteshoreShortintIntegerlongLongfloatFloatdouble DoublecharCharacterBooleanBoolean(is-a)NumberMIN_VALUEMAX_VALUE1-Integernew Integer(3)Integer,valueOfIntegervalueOf(int i)IntegervalueOf(String s)valueOf(String s,int radix)10sIntegerInteger x=Integer.valueOf(3);IntegerInteger x
2、=Integer.valueOf(10);int z1=x.intValue();/Integer-intlong z2=x.longValue()/Integer-long1-/1010int10int x=Integer.parseInt(10);/1615int y=Integer.parseInt(F,16);/int1010String z=Integer.toString(10);/25516String a=Integer.toHexString(255);2-Integer.MAX_VALUEInteger.MIN_VALUEint0 x800000000 x7fffffffD
3、oublePOSITIVE_INFINITYNEGATIVE_INFINITYcompare(double d1,double d2)/doubleIntegerJDK3-Integer(int)(AutoboxingAutoboxing)20Integer(Unboxing)(Unboxing)oInteger30Mathjava.langMathMath.sqrt(4);/cossinabscellfloorminmaxroundMath.random()/0.0,1.0)doubleRandommaxminJDKMathMath.E/Math.PI/BooleanboolCharacter(char)isLetter/isDigit/isWhitespace/isUpperCaseisLowerCase/toUpperCasetoLowerCase/toSting/
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Java程序设计Java程序设计 10 Java 程序设计 10

限制150内