Java API Summary (to be continued)

Source: Internet
Author: User
-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

Extends java. util. scannerconstructor extends (inputstream) Boolean hasnext () string next () Static integer parseint (string) Static long parselong (string) Static double
Parsedouble (string)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.