title: How to insert values in two dimensional array programmatically?
body: <p>I want to do this dynamically in java. I know how to insert values in single dimensional array. I am bit confused in two dimensional array. </p>
  
  <pre><code>static final String shades[][] = {
  
  
   // Shades of grey
    {
      "lightgrey", 
      "dimgray", 
      "sgi gray 92", 
    },
   // Shades of blue
    {
      "dodgerblue 2", 
      "steelblue 2", 
      "powderblue", 
    },
  // Shades of yellow
    {
      "yellow 1",
      "gold 1",
      "darkgoldenrod 1", 
    },
   // Shades of red
    {
      "indianred 1", 
      "firebrick 1", 
      "maroon", 
    }
  };
  </code></pre>