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

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

phpcn_u830
phpcn_u830

reply all (2)
数据分析师

JAVA type conversion problem-PHP Chinese website Q&A-JAVA type conversion problem-PHP Chinese website Q&A

Look around and learn.

    巴扎黑

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

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!