Java API 匯總(未完待續)

來源:互聯網
上載者: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

--------------------------------------------------------------------------------------------java.util.Scannerconstructor Scanner(InputStream)boolean hasNext()String next()static Integer parseInt(String)static Long parseLong(String)static Double
parseDouble(String)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.