Click here to Skip to main content
15,906,766 members
Please Sign up or sign in to vote.
1.00/5 (1 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

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900