Take the 2-minute tour ×  An existing system written in Java
uses the hashcode of a string as its routing strategy for load
balancing.  Now, I cannot modify the system but need to generate
strings that share the same hashcode to test the worst
condition.  I provide those strings from commandline and hope
the system will route all these strings into the same
destination.  Is it possible to generate a large numbers of
strings that share the same hashcode?  To make this question
clear:  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  Remarks: Any hashCode value is
acceptable. There is no constraint on what the string is. But
they should be different from each other.  EDIT: Override method
of String class is not acceptable because I feed those string
from command line.  Instrumentation is also not acceptable
because that will make some impacts on the system.  sh