对象和数据类型不同
前2天还看别人出错,有人提醒,这次我也犯了数值比较的错误,比string内容是否相等的时候用==,结果老也不相等。。。
因为String是对象,比较内容只能用.equals()
因为String是对象,比较内容只能用.equals()
商业智能从业者的个人博客,长期偏居欧洲一隅或某孤岛 A computer engineer's weblog. Created in Dec 19th, 2004. Mainly includes: Research and review of blockchain whitepapers and technologies Computer related knowledge/experience (Rev 2007: data mining, business intelligence, data analysis) Best BBS and resource links, when you need designated information you could go to those discussing forums for help.
0 Comments:
Post a Comment
<< Home