string
->
byte
Byte
static
byte
parseByte(String s)
byte
->
string
Byte
static
String toString(
byte
b)
char
->
string
Character
static
String to String (
char
c)
string
->
Short
Short
static
Short parseShort(String s)
Short
->
String
Short
static
String toString(Short s)
String
->
Integer
Integer
static
int
parseInt(String s)
Integer
->
String
Integer
static
String tostring(
int
i)
String
->
Long
Long
static
long
parseLong(String s)
Long
->
String
Long
static
String toString(Long i)
String
->
Float
Float
static
float
parseFloat(String s)
Float
->
String
Float
static
String toString(
float
f)
String
->
Double
Double
static
double
parseDouble(String s)
Double
->
String
Double
static
String toString(Double)
++++++++++++++++++++++++++++++++++++++++++++++++++++++
数据类型
基本类型有以下四种:
int长度数据类型有:
byte
(8bits)、
short
(16bits)、
int
(32bits)、
long
(64bits)、
float长度数据类型有:单精度(32bits
float
)、双精度(64bits
double
)
boolean类型变量的取值有:ture、
false
char数据类型有:unicode字符,16位
对应的类类型:Integer、Float、Boolean、Character、Double、Short、Byte、Long
数据转换
最新推荐文章于 2023-11-02 14:03:36 发布