第二个方法,是Code Granker上面的,利用了高中学排列组合时候的概念。 有个‘abc’,那么总共可以看成'a_b_c' 5个字符位置 ...
Strings are immutable: their value cannot be changed after they are created. When created using String s = "something" they are stored in a special pool in which the same string is stored only once. / ...