I have 24 Strings that are pretty verbose, like this i.e. "Enter a gene symbol or common name..." Now, typically with shorter string constants and lesser properties, I declare inner enums within the class. However, since there are 24 of these strings, I'm not sure if there is a more efficient or cleaner way of organizing my code.
Additional info:
- I'm only using these strings once
- Need to put them into a String array for it to be used for a specific purpose
- This class containing these Strings, is the only class using them
Here is my current code:
private static String[] getTemplateDefaults()
{
String[] defaults = new String[]
{
"Enter Gene symbol or common name",
"Enter blah blah blah",
"Enter blah blah blah",
"Enter blah blah blah",
"Enter blah blah blah",
// continued for 19 more times...
};
return defaults;
}
Really just looking for some thoughts to organize this without it looking so cumbersome.
Thanks!