title: java best way to store 5/6 static pieces of related information
body: <p>I am trying to optimise some piece of code where there are 6 formulas that each return a double. Each formula is only one line long and has a title, and an explanation ( two strings).</p>
  
  <pre><code>textOutput.setString("Formula A: " + formulaResult + " explanation of formula... " );
  </code></pre>
  
  <p>when i noticed that the formula result, formula title and explanation were manually being added to a string for displaying the output, I figured there is a simpler, tidier way of doing this.</p>
  
  <p>I would rather not create a class ( with 2 static strings) and a one line formula for each.
  The reason for this is that some new formulas might be added, and some removed in the future.</p>
  
  <p>I suppose if an XML file containing the 6 or so formulas with  a field for the two strings and the formula with the doubles were straightforward to implement I could look at that- but maybe that is a step too far.  </p>