To generate a random string, concatenate characters drawn randomly from the set of acceptable symbols until the string reaches the desired length. ... <看更多>
If the length is always identical you can save 1000000 calls to new(). Because new String(char[]) uses Arrays.copyOf() , you don't need a ... ... <看更多>