My first language is PHP :) and newbie to Android and Java. I am trying to understand Array system in Java as it is quite different than PHP. So far understood Java has two different types of arrays (correct me if I am wrong). arr[] and ArrayList<> Also unlike PHP in Java we have to define datatypefor the array.
I am making a simple quiz app (without database) just to learn. For that I want to create a multidimensional array containing question, answer and options like this.
{
{
question,
{option1, option2, option 3, ...}
answer
}
{
question,
{option1, option2, option 3, ...}
answer
}
{
question,
{option1, option2, option 3, ...}
answer
}
...
}
I know basics of creating a multidimensional array using arr[][] = {} but I don't know how I can add another array for options to get the similar result as above.
Update
So I want to populate list in this way.
