I am a beginner in java programming.
How do you create and initialize an array which contains a single and two dimensional array like below in an Arraylist or array by populating the value of each indexes within a for loop. any help will be much appreciated
{
"john":
{
"age":"20",
"eye color":"blue",
"location":"somewhere in the world",
"education-level":"degree",
}
"ben" :
{
"age":"16",
"eye color":"green",
"location":"somewhere in the world",
"education-level":"secondary school",
}
}
The idea is to create an array that stores peoples information as seen above