摘要:        
为了将赋值操作简便化,Java提供了很多扩展赋值运算符,例如+=、-=、/=、*=等等,那么问题来了,x += 1与x = x +1两者相同吗? 结果: 看起来结果是一样的,但是再看下面一个例子。 编译错误的原因是对于j + 1,结果为int类型,而左边为short类型,需要类型强制转换。i +=     阅读全文
posted @ 2018-06-12 17:01
爱跑步的星仔
阅读(324)
评论(0)
推荐(0)
        
            
        
        
摘要:        
原文:Implement an algorithm to determine if a string has all unique characters. What if you can not use additional data structures? 译文:实现一个算法来判断一个字符串中的字    阅读全文
posted @ 2018-06-12 15:22
爱跑步的星仔
阅读(2950)
评论(0)
推荐(0)
        
 

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号