I\'m creating a servlet that needs to load configuration information. Part of the configuration information I need is a list of Strings (specifically, a list of hostnames and/or
Yes, just use delimiters (as no other options available for this):
validHosts example1.com,example2.com,example3.com then simply String[] validHosts = param.split(","); // not really much to do