JAVA语言为什么是13hello83.14而不是13hello11.14
收起
因为遇到了字符串hello,后面的就是文本相加,而不是数值相加了。"8" + "3.14" 就是 83.14,好比 "hel" + "lo" = "hello"
报告相同问题?