code: public String[] getVals(String pre, String prop, String post) {
      ArrayList<String> al = new ArrayList<String>();
  
      if (pre != null) {
        // Add at the front.
        String s = mres.getMessage(pre);
        if (s != null) {
          al.add(s);
        }
      }
  
      int i = 1;
  
      for (;;) {
        String u = mres.getMessage(prop + i);
        if (u == null) {
          // No more
          break;
        }
  
        al.add(u);
        i++;
      }
  
      if (post != null) {
        // Add at the front.
        String s = mres.getMessage(post);
        if (s != null) {
          al.add(s);
        }
      }
  
      return (String[])al.toArray(new String[al.size()]);
    }
docs: Get a list of property values and return as a string array. The
  properties are stored with consectutively numbered names as in
  <pre>
  prop1=aval
  prop2=bval
  </pre>
  There can be no gaps in the sequence.
  If pre or post are non-null they are the property names of values to
  be added to the beginning or end.
  setMres must have been called previously.
  
  @param pre        Property name of prefix
  @param prop       Property name
  @param post       Property name of postfix
  @return String[]  values as a String array