Click here to Skip to main content
14,332,266 members
Rate this:
Please Sign up or sign in to vote.
See more:
`enter code here`using the below code for access values in passing arraylist but that part of code showing error clld=(classloaddata).passingloadeddata[0]; illigle start of types




{ArrayList passingloadeddata= new ArrayList();
/** Creates new form Questions */
public Questions(ArrayList PassingQuestion) {
passingloadeddata=PassingQuestion;
initComponents();
}
public void loadingdata {
classloaddata clld= new classloaddata();
clld=(classloaddata).passingloadeddata[0];
lblshowques.setText(clld.Question);
rdiobtnop1.setText(clld.Op1);
rdiobtnop1.setText(clld.Op2);
rdiobtnop1.setText(clld.Op3);
rdiobtnop1.setText(clld.Op4);
}
}
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Try Java.util.ArrayList.get() Method[^] - it might help you.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100