title: How to build an object from similar key value prefix in a map
body: <p>Firstly I am using Java to write this.
  So I have a Map with keys and values like this.</p>
  
  <pre><code> Key  = Value
  "a.1" = "a1"
  "a.2" = "a2"
  "a.3" = "a3"
  "b.1" = "b1"
  "b.2" = "b2"
  "b.3" = "b3"
  "c.1" = "c1"
  "c.2" = "c2"
  "c.3" = "c3"
  </code></pre>
  
  <p>What I need to do is get it to split all up and make so that eventually I can loop through and create new objects using </p>
  
  <pre><code>someloop{
      new someObject(a1,b1,c1); // new someObject(a2,b2,c2);  // new someObject(a3,b3,c3);
  }
  </code></pre>
  
  <p>I need to be able to make it dynamic so I can add another prefix (d,e) and also check if a number is missing or is skipped.</p>