title: How to generate strings that share the same hashcode in Java?
body: <p>An existing system written in Java uses the hashcode of a string as its routing strategy for load balancing. </p>
  
  <p>Now, I <strong>cannot modify the system</strong> but need to generate strings that share the same hashcode to test the worst condition. </p>
  
  <p>I provide those strings from commandline and hope the system will route all these strings into the same destination. </p>
  
  <p>Is it possible to generate a large numbers of strings that share the same hashcode?</p>
  
  <p>To make this question clear:</p>
  
  <pre><code>String[] getStringsInSameHashCode(int number){
      //return an array in length "number"
      //Every element of the array share the same hashcode. 
      //The element should be different from each other
  }
  </code></pre>
  
  <p>Remarks: Any hashCode value is acceptable. There is no constraint on what the string is. But they should be different from each other. </p>
  
  <p>EDIT:
  Override method of String class is not acceptable because I feed those string from command line. </p>
  
  <p>Instrumentation is also not acceptable because that will make some impacts on the system. </p>