JAVA的API大全_Java API 汇总(未完待续)

-java.lang.Math

static intMath.abs(int);the absolute value

static longMath.abs(long);the absolute value

static floatMath.abs(float);the absolute value

static doubleMath.abs(double);the absolute value

static doubleMath.cos(double);the cosine value, the argument is a radian value

static doubleMath.sin(double);the sine value, the argument is a radian value

static doubleMath.tan(double);the tangent value, the argment is a radian value

static doubleMath.log(double);the natural logarithm value

static doubleMath.exp(double);the exponential value

static doubleMath.log10(double);the base 10 logarithm value

static doubleMath.pow(double);the power value

static intMath.min(int, int);the minimum value

static longMath.min(long, long);the minimum value

static floatMath.min(float, float);the minimum value

static doubleMath.min(double, double);the minimum value

static intMath.max(int, int);the maximum value

static longMath.max(long, long);the maximum value

static floatMath.max(float, float);the maximum value

static doubleMath.max(double, double);the maximum value

static doubleMath.random();a random double value between 0 and 1

static longMath.round(double);the round value of a double value

static intMath.round(float);the round value of a double value

static doubleMath.sqrt(double);the square value

-------------------------------------------------------------------------------------------

-java.lang.Byte

constructor ByteByte(byte);

bytebyteValue();the byte value

intintValue();the int value

longlongValue();the long value

floatfloatValue();the float value

doubledoubleValue();the double value

static byteByte.parseByte(String);the byte value of the String

bytevalueOf(String);

StringtoString();

-------------------------------------------------------------------------------------------

-java.lang.Integer

IntegerInteger(int);

bytebyteValue();the byte value

intintValue();the int value

longlongValue();the long value

floatfloatValue();the float value

doubledoubleValue();the double value

static intInteger.parseInt(String);the int value of the String

intvalueOf(String);

StringtoString();

-------------------------------------------------------------------------------------------

-java.lang.Long

constructor LongLong(long);

bytebyteValue();the byte value

intintValue();the int value

longlongValue();the long value

floatfloatValue();the float value

doubledoubleValue();the double value

static longLong.parseLong(String);

longvalueOf(String);

StringtoString();

-------------------------------------------------------------------------------------------

-java.lang.Float

constructor FloatFloat(float);

bytebyteValue();the byte value

intintValue();the int value

longlongValue();the long value

floatfloatValue();the float value

doubledoubleValue();the double value

static floatFloat.parseFloat(String);

floatvalueOf(String);

StringtoString();

-------------------------------------------------------------------------------------------

-java.lang.Double

constructor DoubleDouble(double);

bytebyteValue();the byte value

intintValue();the int value

longlongValue();the long value

floatfloatValue();the float value

doubledoubleValue();the double value

static doubleDouble.parseDouble(String);

doublevalueOf(String);

StringtoString();

-------------------------------------------------------------------------------------------

-java.lang.Short

constructor ShortShort(short);

shortshortValue();

static shortShort.parseShort(String);

shortvalueOf(String);

StringtoString();

-------------------------------------------------------------------------------------------

-java.lang.Boolean

constructor BooleanBoolean(boolean);

booleanbooleanValue();

static booleanBoolean.parseBoolean(String);

booleanvalueOf(String);

StringtoString();

-------------------------------------------------------------------------------------------

-java.lang.Character

constructor CharacterCharacter(char);

charcharOf(String);

StringtoString();

-------------------------------------------------------------------------------------------

-java.math.BigDecimal

constructor 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.NumberForamt

static 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 NumberFormat

How to use "000,000"?

How to use "#"?

-------------------------------------------------------------------------------------------

-java.util.Locale

static LocaleCANADA

static LocaleCHINA

static LocaleFRANCE

static LocaleGERMANY

static LocaleITALY

static LocaleJAPAN

static LocaleKOREA

static LocalePRC

static LocaleTAIWAN

static LocaleUK

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

原文链接:

http://blog.csdn.net/poechant/article/details/6919886

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值