public class NumberUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static Byte |
parseByte(String s)
字符串byte类型转换为封装byte类型
|
static Double |
parseDouble(String s)
字符串double转换为封装类型double
|
static Float |
parseFloat(String s)
字符串float转换为封装类型float
|
static Integer |
parseInteger(String s)
字符串整数转换为Integer类型整数
|
static Long |
parseLong(String s)
字符串long转换为封装类型Long
|
static Short |
parseShort(String s)
字符串short转换为封装类型short
|
public static Integer parseInteger(String s)
s - 字符串int数字public static Short parseShort(String s)
s - 字符串shortpublic static Float parseFloat(String s)
s - 字符串floatCopyright © 2022. All rights reserved.