Java API 汇总(未完待续)

来源:互联网 发布:诊股最准的软件 编辑:程序博客网 时间:2024/04/29 04:19
-java.lang.Mathstatic intMath.abs(int);the absolute valuestatic longMath.abs(long);the absolute valuestatic floatMath.abs(float);the absolute valuestatic doubleMath.abs(double);the absolute valuestatic doubleMath.cos(double);the cosine value, the argument is a radian valuestatic doubleMath.sin(double);the sine value, the argument is a radian valuestatic doubleMath.tan(double);the tangent value, the argment is a radian valuestatic doubleMath.log(double);the natural logarithm valuestatic doubleMath.exp(double);the exponential valuestatic doubleMath.log10(double);the base 10 logarithm valuestatic doubleMath.pow(double);the power valuestatic intMath.min(int, int);the minimum valuestatic longMath.min(long, long);the minimum valuestatic floatMath.min(float, float);the minimum valuestatic doubleMath.min(double, double);the minimum valuestatic intMath.max(int, int);the maximum valuestatic longMath.max(long, long);the maximum valuestatic floatMath.max(float, float);the maximum valuestatic doubleMath.max(double, double);the maximum valuestatic doubleMath.random();a random double value between 0 and 1static longMath.round(double);the round value of a double valuestatic intMath.round(float);the round value of a double valuestatic doubleMath.sqrt(double);the square value--------------------------------------------------------------------------------------------java.lang.Byteconstructor ByteByte(byte);bytebyteValue();the byte valueintintValue();the int valuelonglongValue();the long valuefloatfloatValue();the float valuedoubledoubleValue();the double valuestatic byteByte.parseByte(String);the byte value of the StringbytevalueOf(String);StringtoString();--------------------------------------------------------------------------------------------java.lang.IntegerIntegerInteger(int);bytebyteValue();the byte valueintintValue();the int valuelonglongValue();the long valuefloatfloatValue();the float valuedoubledoubleValue();the double valuestatic intInteger.parseInt(String);the int value of the StringintvalueOf(String);StringtoString();--------------------------------------------------------------------------------------------java.lang.Longconstructor LongLong(long);bytebyteValue();the byte valueintintValue();the int valuelonglongValue();the long valuefloatfloatValue();the float valuedoubledoubleValue();the double valuestatic longLong.parseLong(String);longvalueOf(String);StringtoString();--------------------------------------------------------------------------------------------java.lang.Floatconstructor FloatFloat(float);bytebyteValue();the byte valueintintValue();the int valuelonglongValue();the long valuefloatfloatValue();the float valuedoubledoubleValue();the double valuestatic floatFloat.parseFloat(String);floatvalueOf(String);StringtoString();--------------------------------------------------------------------------------------------java.lang.Doubleconstructor DoubleDouble(double);bytebyteValue();the byte valueintintValue();the int valuelonglongValue();the long valuefloatfloatValue();the float valuedoubledoubleValue();the double valuestatic doubleDouble.parseDouble(String);doublevalueOf(String);StringtoString();--------------------------------------------------------------------------------------------java.lang.Shortconstructor ShortShort(short);shortshortValue();static shortShort.parseShort(String);shortvalueOf(String);StringtoString();--------------------------------------------------------------------------------------------java.lang.Booleanconstructor BooleanBoolean(boolean);booleanbooleanValue();static booleanBoolean.parseBoolean(String);booleanvalueOf(String);StringtoString();--------------------------------------------------------------------------------------------java.lang.Characterconstructor CharacterCharacter(char);charcharOf(String);StringtoString();--------------------------------------------------------------------------------------------java.math.BigDecimalconstructor BigDecimalBigDecimal(int);constructor BigDecimalBigDecimal(long);constructor BigDecimalBigDecimal(float);constructor BigDecimalBigDecimal(double);constructor BigDecimalBigDecimal(String);intintValue();longlongValue();floatfloatValue();doubledoubleValue();StringtoString();BigDecimaladd(BigDecimal);BigDecimalsubtract(BigDecimal);BigDecimalmultiply(BigDecimal);BigDecimaldivide(BigDecimal);--------------------------------------------------------------------------------------------java.text.NumberForamtstatic StringNumberFormat.format(int);static StringNumberFormat.format(long);static StringNumberFormat.format(float);static StringNumberFormat.format(double);static StringNumberFormat.format(long);static NumberFormatNumberFormat.getCurrencyInstance();static NumberFormatNumberFormat.getCurrencyInstance(java.util.Locale);static NumberFormatNumberFormat.getPercentInstance();static NumberFormatNumberFormat.getPercentInstance(java.util.Locale);static NumberFormatNumberFormat.getNumberInstance();static NumberFormatNumberFormat.getNumberInstance(java.util.Locale);static voidNumberFormat.setMinimumFractionDigits(int);static voidNumberFormat.setMaximumFractionDigits(int);--------------------------------------------------------------------------------------------java.text.DecimalFormat extends NumberFormatHow to use "000,000"?How to use "#"?--------------------------------------------------------------------------------------------java.util.Localestatic LocaleCANADAstatic LocaleCHINAstatic LocaleFRANCEstatic LocaleGERMANYstatic LocaleITALYstatic LocaleJAPANstatic LocaleKOREAstatic LocalePRCstatic LocaleTAIWANstatic LocaleUKstatic LocaleUS
--------------------------------------------------------------------------------------------java.util.Scannerconstructor Scanner(InputStream)boolean hasNext()String next()static Integer parseInt(String)static Long parseLong(String)static Double parseDouble(String)

原创粉丝点击