I have a four-dimensional array for which I have a static set of values. But my problem is that I want to get some data from the api and put it in a four-dimensional array at runtime . I do not know how to do that. Any slightest idea will be appreciated. Here is my example that shows my static definition of my four-dimensional array.
static final String listdesc[][][][] =
{
{
{
{ "grey", "grey only" },
{ "lightgrey","#D3D3D3" },
{ "dimgrey","#696969" }
},
{
{ "grey", "darkgrey" },
{ "sgi grey 92","#EAEAEA" }
}
},
{
{
{ "blue", "lightblue" },
{ "dodgerblue 2","#1C86EE" }
},
{
{ "blue", "darkblue" },
{ "steelblue 2","#5CACEE" },
{ "powderblue","#B0E0E6" }
}
},
{
{
{ "yellow", "lightyellow" },
{ "yellow 1","#FFFF00" },
{ "gold 1","#FFD700" }
},
{
{ "yellow", "darkyellow" },
{ "darkgoldenrod 1","#FFB90F" }
}
},
{
{
{ "red", "lightred" },
{ "indianred 1","#FF6A6A" }
},
{
{ "red", "darkred" },
{ "firebrick 1","#FF3030" },
{ "maroon","#800000" }
},
}
};