JAVA类型转换问题
phpcn_u830
phpcn_u830 2017-03-10 10:18:58
0
2
912

(int)XX与Integer.parseInt(XX)有什么区别啊,能不能详细点给我解释一下

phpcn_u830
phpcn_u830

Antworte allen(2)
数据分析师

JAVA类型转换问题-PHP中文网问答-JAVA类型转换问题-PHP中文网问答

围观一下哦,学习一下。

巴扎黑

(int)方式称为强制转换,是相同等级之间的类型转换,不能int(String)。
Integer.parseInt(XX),只能是Integer.parseInt(String),专门将String转为int

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage