I am trying to acces to the specified index of the array of the ArrayList and then I would like to assign it tot the specific
variable, course name. This is what I am doing:
String courseName;
for(int i = 0; i< dlayer.getStudentList().getContainer().size(); i++)
{
courseName = dlayer.getStudentList().getContainer().get(i)[2];
//error: The type of the expression must be an array type but it resolved to Object
//then I am planning to do other things in the loop with that courseName but first
//I need to find the way how to assign some data to it
}
Thank you for help

New Topic/Question
Reply



MultiQuote



|